From: Jim Meyering Date: Sat, 12 Jul 2003 11:40:03 +0000 (+0000) Subject: * src/sys2.h: Remove alloca-related block. X-Git-Tag: v5.0.1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a29f991b84a6c27515e72d19a84159be9851be79;p=thirdparty%2Fcoreutils.git * src/sys2.h: Remove alloca-related block. * src/system.h: Include here, instead. --- diff --git a/src/sys2.h b/src/sys2.h index a4b4ade7dc..b6f8577bf4 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -226,29 +226,6 @@ # define RETSIGTYPE void #endif -#if __GNUC__ -# ifndef alloca -# define alloca __builtin_alloca -# endif -#else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - # pragma alloca -# else -# ifdef _WIN32 -# include -# include -# else -# ifndef alloca -char *alloca (); -# endif -# endif -# endif -# endif -#endif - #ifdef __DJGPP__ /* We need the declaration of setmode. */ # include diff --git a/src/system.h b/src/system.h index 387a136f79..1c212d4010 100644 --- a/src/system.h +++ b/src/system.h @@ -15,6 +15,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include + /* Include sys/types.h before this file. */ #if 2 <= __GLIBC__ && 2 <= __GLIBC_MINOR__