diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-12 11:40:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-12 11:40:03 +0000 |
commit | a29f991b84a6c27515e72d19a84159be9851be79 (patch) | |
tree | 5367c1d30f878bbda68f6fdd1afc762f7d622d56 | |
parent | 64521cfa9a4b76ec424a2e9c06ec6552b03c3551 (diff) | |
download | coreutils-a29f991b84a6c27515e72d19a84159be9851be79.tar.xz |
* src/sys2.h: Remove alloca-related block.
* src/system.h: Include <alloca.h> here, instead.
-rw-r--r-- | src/sys2.h | 23 | ||||
-rw-r--r-- | src/system.h | 2 |
2 files changed, 2 insertions, 23 deletions
diff --git a/src/sys2.h b/src/sys2.h index a4b4ade7d..b6f8577bf 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 <alloca.h> -# else -# ifdef _AIX - # pragma alloca -# else -# ifdef _WIN32 -# include <malloc.h> -# include <io.h> -# else -# ifndef alloca -char *alloca (); -# endif -# endif -# endif -# endif -#endif - #ifdef __DJGPP__ /* We need the declaration of setmode. */ # include <io.h> diff --git a/src/system.h b/src/system.h index 387a136f7..1c212d401 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 <alloca.h> + /* Include sys/types.h before this file. */ #if 2 <= __GLIBC__ && 2 <= __GLIBC_MINOR__ |