diff src/callproc.c @ 100:4be1180a9e89 r20-1b2

Import from CVS: tag r20-1b2
author cvs
date Mon, 13 Aug 2007 09:15:11 +0200
parents 1ce6082ce73f
children fe104dbd9147
line wrap: on
line diff
--- a/src/callproc.c	Mon Aug 13 09:13:58 2007 +0200
+++ b/src/callproc.c	Mon Aug 13 09:15:11 2007 +0200
@@ -35,12 +35,15 @@
 #include "mule-coding.h"
 #endif
 
-#include "sysfile.h"
 #include "systime.h"
 #include "sysproc.h"
+#include "sysfile.h" /* Always include after sysproc.h */
 #include "syssignal.h" /* Always include before systty.h */
 #include "systty.h"
 
+#ifdef WINDOWSNT
+#define _P_NOWAIT 1	/* from process.h */
+#endif
 
 #ifdef DOS_NT
 /* When we are starting external processes we need to know whether they
@@ -342,11 +345,7 @@
     }
   else
     {
-#ifdef WINDOWSNT
-      pipe_with_inherited_out (fd);
-#else  /* not WINDOWSNT */
       pipe (fd);
-#endif /* not WINDOWSNT */
 #if 0
       /* Replaced by close_process_descs */
       set_exclusive_use (fd[0]);
@@ -639,7 +638,11 @@
 
 static int relocate_fd (int fd, int min);
 
+#ifdef WINDOWSNT
+int
+#else
 void
+#endif
 child_setup (int in, int out, int err, char **new_argv,
 	     CONST char *current_dir)
 {