summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/system.h b/src/system.h
index 552d4c18e..468e0e744 100644
--- a/src/system.h
+++ b/src/system.h
@@ -285,15 +285,16 @@ char *getenv ();
#define RETSIGTYPE void
#endif
-#ifdef __GNUC__
-# undef alloca
-#else
+#ifndef __GNUC__
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
-# ifndef _AIX
-/* AIX alloca decl has to be the first thing in the file, bletch! */
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca
char *alloca ();
+# endif
# endif
# endif
#endif