From: Kaveh R. Ghazi Date: Sat, 28 Feb 1998 06:11:54 +0000 (+0000) Subject: I've backed out of including stat.h via system.h because stat.h can define... X-Git-Tag: prereleases/egcs-1.1-prerelease~2238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c580105315d6e393e042182ced090b8ec6ce0b51;p=thirdparty%2Fgcc.git I've backed out of including stat.h via system.h because stat.h can define... I've backed out of including stat.h via system.h because stat.h can define static functions (eg on x86 svr4 according to jfc@mit.edu) causing code bloat. * system.h: Remove sys/stat.h. * gcc.c: Add sys/stat.h. From-SVN: r18289 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 450cb70a5012..b8e74575be1d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Sat Feb 28 07:54:03 1998 Kaveh R. Ghazi + * system.h: Remove sys/stat.h. + * gcc.c: Add sys/stat.h. + * genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE. * genattrtab.c: Likewise. * genconfig.c: Likewise. diff --git a/gcc/gcc.c b/gcc/gcc.c index fcbbf1eb00fc..5f53c2466905 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -37,6 +37,7 @@ compilation is specified by a string called a "spec". */ #include "system.h" #include +#include #ifdef __STDC__ #include #else diff --git a/gcc/system.h b/gcc/system.h index ef3ee49a8c50..6e8548ee537c 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -69,7 +69,6 @@ #include -#include #include #ifndef errno