diff options
| author | Dan Nicolaescu | 2010-06-01 19:32:43 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-06-01 19:32:43 -0700 |
| commit | 8923d6176b785c2d800d27960d55a7dec3fed71b (patch) | |
| tree | ce5f502a781c7e2d1d86d5055ddc748ae2099828 /src | |
| parent | 3aeb940248b61c5506e855bc7c4d57e115d4160d (diff) | |
| download | emacs-8923d6176b785c2d800d27960d55a7dec3fed71b.tar.gz emacs-8923d6176b785c2d800d27960d55a7dec3fed71b.zip | |
Fix alloca definition when using gcc on non-gnu systems.
* configure.in: Use the code sequence indicated by "info autoconf"
for alloca (bug#6170).
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.in | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/config.in b/src/config.in index 9d845027db4..16d788fd7a2 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1164,15 +1164,19 @@ extern char *getenv (); | |||
| 1164 | #ifdef HAVE_STDLIB_H | 1164 | #ifdef HAVE_STDLIB_H |
| 1165 | #include <stdlib.h> | 1165 | #include <stdlib.h> |
| 1166 | #endif | 1166 | #endif |
| 1167 | #ifndef __GNUC__ | 1167 | #ifdef HAVE_ALLOCA_H |
| 1168 | # ifdef HAVE_ALLOCA_H | 1168 | # include <alloca.h> |
| 1169 | # include <alloca.h> | 1169 | #elif defined __GNUC__ |
| 1170 | # else /* AIX files deal with #pragma. */ | 1170 | # define alloca __builtin_alloca |
| 1171 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | 1171 | #elif defined _AIX |
| 1172 | char *alloca (); | 1172 | # define alloca __alloca |
| 1173 | # endif | 1173 | #else |
| 1174 | # endif /* HAVE_ALLOCA_H */ | 1174 | # include <stddef.h> |
| 1175 | #endif /* __GNUC__ */ | 1175 | # ifdef __cplusplus |
| 1176 | extern "C" | ||
| 1177 | # endif | ||
| 1178 | void *alloca (size_t); | ||
| 1179 | #endif | ||
| 1176 | #ifndef HAVE_SIZE_T | 1180 | #ifndef HAVE_SIZE_T |
| 1177 | typedef unsigned size_t; | 1181 | typedef unsigned size_t; |
| 1178 | #endif | 1182 | #endif |