summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-11 16:32:36 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-11 16:32:36 +0000
commitb03d1d603289f277a25f2b99906a10383f99b6ef (patch)
tree4adc4ef476a390aa64b6ddcf2df2e3735de178e3 /TSRM
parent4a5cb37ac487ac6e1ea24f9d4a8641668e971739 (diff)
downloadphp-git-b03d1d603289f277a25f2b99906a10383f99b6ef.tar.gz
Fix missing header warnings (alloca.h) on Sun Os & Tru64.
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_config_common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
index 7ba86e70ad..8dbb93fe89 100644
--- a/TSRM/tsrm_config_common.h
+++ b/TSRM/tsrm_config_common.h
@@ -14,11 +14,13 @@
# include <sys/param.h>
#endif
+#if HAVE_ALLOCA_H && !defined(_ALLOCA_H)
+# include <alloca.h>
+#endif
+
/* AIX requires this to be the first thing in the file. */
#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-# include <alloca.h>
-# else
+# ifndef HAVE_ALLOCA_H
# ifdef _AIX
#pragma alloca
# else