summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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