OSDN Git Service

* gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when deciding
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 1996 01:32:53 +0000 (01:32 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 1996 01:32:53 +0000 (01:32 +0000)
whether to include sys/file.h.
(execute): -pipe is supported for cygwin32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12652 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/gcc.c

index baf802b..b3b1b1a 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -37,7 +37,7 @@ compilation is specified by a string called a "spec".  */
 #include <sys/stat.h>
 #include <errno.h>
 
-#ifndef _WIN32
+#ifndef NO_SYS_FILE_H
 #include <sys/file.h>   /* May get R_OK, etc. on some systems.  */
 #endif
 
@@ -1938,7 +1938,7 @@ execute ()
   for (n_commands = 1, i = 0; i < argbuf_index; i++)
     if (strcmp (argbuf[i], "|") == 0)
       {                                /* each command.  */
-#if defined (__MSDOS__) || defined (_WIN32) || defined (OS2)
+#if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN32__)) || defined (OS2)
         fatal ("-pipe not supported");
 #endif
        argbuf[i] = 0;  /* termination of command args.  */