diff options
author | Clement Chigot <clement.chigot@atos.net> | 2021-05-27 13:04:01 +0200 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-08-21 01:04:27 +0300 |
commit | 09ca58f02347f6ccd4f9cab86d30a7e7084003fe (patch) | |
tree | b0c008ee9316ec18bbaca49ca564db1b64524de3 | |
parent | 545e5520a1df8622f24c344897654678d2c0f943 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |