* frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when
inhibit_libc is defined.
From-SVN: r19390
1998-04-23 Jim Wilson <wilson@cygnus.com>
+ * frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when
+ inhibit_libc is defined.
+
* c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL.
Thu Apr 23 19:09:33 1998 Jim Wilson <wilson@cygnus.com>
#include "tconfig.h"
+/* We disable this when inhibit_libc, so that gcc can still be built without
+ needing header files first. */
+/* ??? This is not a good solution, since prototypes may be required in
+ some cases for correct code. See also libgcc2.c. */
+#ifndef inhibit_libc
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <unistd.h>
+#endif
#include "defaults.h"
#include "tconfig.h"
+/* We disable this when inhibit_libc, so that gcc can still be built without
+ needing header files first. */
+/* ??? This is not a good solution, since prototypes may be required in
+ some cases for correct code. See also frame.c. */
+#ifndef inhibit_libc
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <unistd.h>
+#endif
#include "machmode.h"
#include "defaults.h"