aboutsummaryrefslogtreecommitdiff
path: root/gcc/frame.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-04-23 19:57:57 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-04-23 12:57:57 -0700
commitf1f53f0b758bb51f646c87bbfd5b8cb32fcef12e (patch)
treef01676351ff77df72f679339895344ec7eed8202 /gcc/frame.c
parentf5880dbeb0ed65793b55c721924f5385ec61ded1 (diff)
downloadgcc-f1f53f0b758bb51f646c87bbfd5b8cb32fcef12e.zip
gcc-f1f53f0b758bb51f646c87bbfd5b8cb32fcef12e.tar.gz
gcc-f1f53f0b758bb51f646c87bbfd5b8cb32fcef12e.tar.bz2
Partial fix for problem reported by Don Bowman.
* frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when inhibit_libc is defined. From-SVN: r19390
Diffstat (limited to 'gcc/frame.c')
-rw-r--r--gcc/frame.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/frame.c b/gcc/frame.c
index 4bd1fee..bde83d2 100644
--- a/gcc/frame.c
+++ b/gcc/frame.c
@@ -33,9 +33,15 @@ Boston, MA 02111-1307, USA. */
#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"