* pexecute.c: Update test for win32 (&& ! cygwin32).
authorDoug Evans <dje@gnu.org>
Sun, 18 Aug 1996 01:43:25 +0000 (01:43 +0000)
committerDoug Evans <dje@gnu.org>
Sun, 18 Aug 1996 01:43:25 +0000 (01:43 +0000)
From-SVN: r12656

gcc/pexecute.c

index fa513783fed30c2c2d9ceca2954c2f59e5e6b14b..1814b7157543ea72250f455203140eb55f3d213d 100644 (file)
@@ -217,7 +217,7 @@ pwait (pid, status, flags)
 
 #endif /* MSDOS */
 
-#ifdef _WIN32
+#if defined (_WIN32) && !defined (__CYGWIN32__)
 
 #include <process.h>
 /* ??? Why are these __spawnv{,p} and not _spawnv{,p}?  */
@@ -440,8 +440,9 @@ pfinish ()
 
 #endif /* MPW */
 
-#if ! defined (__MSDOS__) && ! defined (_WIN32) && ! defined (OS2) \
-    && ! defined (MPW)
+/* include for Unix-like environments but not for Dos-like environments */
+#if ! defined (__MSDOS__) && ! defined (OS2) && ! defined (MPW) \
+    && (defined (__CYGWIN32__) || ! defined (_WIN32))
 
 #ifdef USG
 #define vfork fork
@@ -578,4 +579,4 @@ pwait (pid, status, flags)
   return pid;
 }
 
-#endif /* !MSDOS && !WIN32 && !OS2 && !MPW */
+#endif /* ! __MSDOS__ && ! OS2 && ! MPW && (__CYGWIN32___ || ! _WIN32) */