Add CYGWIN32 support.
authorJim Wilson <wilson@cygnus.com>
Tue, 9 Sep 1997 20:21:58 +0000 (20:21 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 9 Sep 1997 20:21:58 +0000 (13:21 -0700)
* g77.c (pexecute, doit): Add checks for __CYGWIN32__.

From-SVN: r15183

gcc/f/ChangeLog.egcs
gcc/f/g77.c

index 8becff73343283a739fafd84d64b719aca15846a..0ec6af0fb06b4e890f2bcc02f2dcb5ee407ab60b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep  9 13:20:40 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * g77.c (pexecute, doit): Add checks for __CYGWIN32__.
+
 Wed Aug 27 20:32:03 1997  Jeffrey A Law  (law@cygnus.com)
 
        * top.c (ffe_decode_option): Turn on flag_move_all_moveables
index dc9f7764b26a65ff2d4dcfbc2e1e5ca87d5101fd..1c0834fd9a3ec05fbc9244c39922acb81057225d 100644 (file)
@@ -979,7 +979,7 @@ pexecute (search_flag, program, argv, not_last)
 
 #endif
 
-#if !defined(__MSDOS__) && !defined(OS2) && !defined(_WIN32)
+#if (!defined(__MSDOS__) && !defined(OS2) && !defined(_WIN32)) || defined (__CYGWIN32__)
 
 static int
 pexecute (search_flag, program, argv, not_last)
@@ -1084,7 +1084,7 @@ pexecute (search_flag, program, argv, not_last)
 }
 #endif /* OS2 */
 
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined (__CYGWIN32__)
 
 static int
 pexecute (search_flag, program, argv, not_last)
@@ -1109,7 +1109,7 @@ doit (char *program, char **argv)
 #ifdef __MSDOS__
   status = pid;
 #else
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN32__)
   pid = cwait (&status, pid, WAIT_CHILD);
 #else
   pid = wait (&status);