Attached patch fixes compile problems in AIX.
You can find this same stuff in here:

http://www.gnu.org/manual/autoconf/html_mono/autoconf.html#SEC27

--Jani

Index: TSRM/tsrm_config_common.h
===================================================================
RCS file: /repository/TSRM/tsrm_config_common.h,v
retrieving revision 1.3
diff -u -r1.3 tsrm_config_common.h
--- TSRM/tsrm_config_common.h   2000/09/07 15:31:29     1.3
+++ TSRM/tsrm_config_common.h   2001/12/07 01:44:34
@@ -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
Index: Zend/zend.h
===================================================================
RCS file: /repository/Zend/zend.h,v
retrieving revision 1.143
diff -u -r1.143 zend.h
--- Zend/zend.h 2001/12/04 17:56:19     1.143
+++ Zend/zend.h 2001/12/07 01:44:35
@@ -92,8 +92,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))
-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to