diff options
author | Clement Chigot <clement.chigot@atos.net> | 2021-05-27 13:04:01 +0200 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-06-10 11:03:41 +0300 |
commit | 0e70a7f941f590d22e840926418a579ac464fa36 (patch) | |
tree | 0cb5ff0c5077c855ec26bb9eaabebfaabdb22432 /dyn_load.c | |
parent | eba47d9d1197fa1dc3c68bc0813dc2364a13fd89 (diff) | |
download | bdwgc-0e70a7f941f590d22e840926418a579ac464fa36.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>".
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1207,7 +1207,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) |