Fix alternate stack test in configure

* configure.ac (emacs_cv_alternate_stack): Include <stdlib.h>
for 'malloc's prototype.
This commit is contained in:
Florian Weimer 2022-12-23 18:51:08 +01:00 committed by Eli Zaretskii
parent 84888080ee
commit 121a9ff9f6

View file

@ -5248,6 +5248,7 @@ AC_CACHE_CHECK([whether signals can be handled on alternate stack],
[emacs_cv_alternate_stack], [emacs_cv_alternate_stack],
[AC_COMPILE_IFELSE( [AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <signal.h> [AC_LANG_PROGRAM([[#include <signal.h>
#include <stdlib.h>
]], ]],
[[stack_t ss; [[stack_t ss;
struct sigaction sa; struct sigaction sa;