aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-08-18 01:32:53 +0000
committerDoug Evans <dje@gnu.org>1996-08-18 01:32:53 +0000
commitb8a8c83b1007e8ee5481e46fd62dc3d5a2066c89 (patch)
tree203b8ce5ec4bbe00d147a70dfc75b916d3ffe99c /gcc/gcc.c
parent1143a698bd8c66cd5fc263f2e765bb1b816387fc (diff)
downloadgcc-b8a8c83b1007e8ee5481e46fd62dc3d5a2066c89.zip
gcc-b8a8c83b1007e8ee5481e46fd62dc3d5a2066c89.tar.gz
gcc-b8a8c83b1007e8ee5481e46fd62dc3d5a2066c89.tar.bz2
gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when...
* gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when deciding whether to include sys/file.h. (execute): -pipe is supported for cygwin32. From-SVN: r12652
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index baf802b..b3b1b1a 100644
--- 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. */