summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2001-12-11 09:17:38 +0000
committerSebastian Bergmann <sebastian@php.net>2001-12-11 09:17:38 +0000
commit4345f8a0b5234efbedf4e49230e957f6020c2b25 (patch)
tree68ef072dc40e393041106453f9d111b345d35a26 /Zend/zend.h
parent180cce6f635a11c35d60faa71db1ed6fbead1d81 (diff)
downloadphp-git-4345f8a0b5234efbedf4e49230e957f6020c2b25.tar.gz
MFZE1 (AIX fixes)
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index cb935c0a43..545a20da6b 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -17,6 +17,7 @@
+----------------------------------------------------------------------+
*/
+/* $Id$ */
#ifndef ZEND_H
#define ZEND_H
@@ -92,8 +93,19 @@
# define ZEND_EXTENSIONS_SUPPORT 0
#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_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32))