summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Chigot <clement.chigot@atos.net>2021-05-27 13:04:01 +0200
committerIvan Maidanski <ivmai@mail.ru>2021-08-21 01:04:27 +0300
commit09ca58f02347f6ccd4f9cab86d30a7e7084003fe (patch)
treeb0c008ee9316ec18bbaca49ca564db1b64524de3
parent545e5520a1df8622f24c344897654678d2c0f943 (diff)
downloadbdwgc-09ca58f02347f6ccd4f9cab86d30a7e7084003fe.tar.gz
Include <alloca.h> when using alloca on AIX
Issue #355 (bdwgc). Using "#pragma alloca" only works with XLC, in order to enable alloca calls. Including <alloca.h> works for both GCC and XLC. * dyn_load.c [AIX]: Replace "#pragma alloca" by "#include <alloca.h>".
-rw-r--r--dyn_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 1fc9308d..30c624f1 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -1214,7 +1214,7 @@ GC_INNER void GC_register_dynamic_libraries(void)
#endif /* HPUX */
#ifdef AIX
-# pragma alloca
+# include <alloca.h>
# include <sys/ldr.h>
# include <sys/errno.h>
GC_INNER void GC_register_dynamic_libraries(void)