summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-12-09 23:43:20 +0000
committerfoobar <sniper@php.net>2001-12-09 23:43:20 +0000
commit9b81440b7639456bdf67bc0177785c4fbbbd543a (patch)
tree354bf8299e05ea6c940b55dec8e2a2a027fe17de /TSRM
parentf22f8adedd9da3969f0ce4ba09efc3c643d99930 (diff)
downloadphp-git-9b81440b7639456bdf67bc0177785c4fbbbd543a.tar.gz
This was needed afterall. Without this Apache segfaulted when accessing PHP scripts.
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_config_common.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
index 8b80f80121..add5a50fa5 100644
--- a/TSRM/tsrm_config_common.h
+++ b/TSRM/tsrm_config_common.h
@@ -16,8 +16,19 @@
#include <malloc.h>
#endif
-#if HAVE_ALLOCA_H
-#include <alloca.h>
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
#endif
#if HAVE_UNISTD_H