]> granicus.if.org Git - php/commitdiff
This was needed afterall. Without this Apache segfaulted when accessing PHP scripts.
authorfoobar <sniper@php.net>
Sun, 9 Dec 2001 23:43:20 +0000 (23:43 +0000)
committerfoobar <sniper@php.net>
Sun, 9 Dec 2001 23:43:20 +0000 (23:43 +0000)
TSRM/tsrm_config_common.h

index 8b80f801212bca32310645351fca3bcfd460bbe4..add5a50fa53ddf4a01404d1a311fe38c83d59e28 100644 (file)
 #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