secur32: Check for lack of fork() support.
authorAlexandre Julliard <julliard@winehq.org>
Mon, 22 Dec 2008 17:04:39 +0000 (18:04 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 22 Dec 2008 17:04:39 +0000 (18:04 +0100)
dlls/secur32/dispatcher.c

index 5707e6a2546e2e86a94156c422ea2cfc98a7206d..91f425ca1f9a52c89a93893e1aacbab90af6fd86 100644 (file)
@@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntlm);
 SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
         char* const argv[])
 {
+#ifdef HAVE_FORK
     int pipe_in[2];
     int pipe_out[2];
     int i;
@@ -132,6 +133,10 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
     }
 
     return SEC_E_OK;
+#else
+    ERR( "no fork support on this platform\n" );
+    return SEC_E_INTERNAL_ERROR;
+#endif
 }
 
 static SECURITY_STATUS read_line(PNegoHelper helper, int *offset_len)