From b8a8c83b1007e8ee5481e46fd62dc3d5a2066c89 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sun, 18 Aug 1996 01:32:53 +0000 Subject: [PATCH] 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 --- gcc/gcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gcc.c b/gcc/gcc.c index baf802bd8d8..b3b1b1a51da 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -37,7 +37,7 @@ compilation is specified by a string called a "spec". */ #include #include -#ifndef _WIN32 +#ifndef NO_SYS_FILE_H #include /* 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. */ -- 2.30.2