diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-23 19:57:57 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-23 19:57:57 +0000 |
commit | 3b0dba173e8dfb12c882517229aed3b62d572a3e (patch) | |
tree | f01676351ff77df72f679339895344ec7eed8202 /gcc/libgcc2.c | |
parent | 3ef373de7e267d97455cd05987adf742f0e3bf77 (diff) | |
download | gcc-3b0dba173e8dfb12c882517229aed3b62d572a3e.tar.gz |
Partial fix for problem reported by Don Bowman.
* frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when
inhibit_libc is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19390 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index ffbd1590192..a1525baf26b 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -32,9 +32,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 frame.c. */ +#ifndef inhibit_libc /* fixproto guarantees these system headers exist. */ #include <stdlib.h> #include <unistd.h> +#endif #include "machmode.h" #include "defaults.h" |