(fcntl.h): Only include if not building libgcc.a.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 27 Jun 1997 22:27:10 +0000 (18:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 27 Jun 1997 22:27:10 +0000 (18:27 -0400)
From-SVN: r14343

gcc/config/xm-gnu.h

index 57e74f23018240d8e8925b7f24c11aa2d8d40226..62debf6de946900f227816928eb8adde92d2208e 100644 (file)
@@ -1,5 +1,5 @@
 /* Configuration for GNU C-compiler for hosts running GNU.
-   Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA.  */
 #define HAVE_STRERROR          /* GNU has strerror.  */
 #define POSIX                  /* GNU complies to POSIX.1.  */
 
+#ifndef inhibit_libc
 /* Get a definition of O_RDONLY; some of the GCC files don't include this
    properly and will define it themselves to be zero. */
 #include <fcntl.h>
+#endif