]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix alternate stack test in configure
authorFlorian Weimer <fweimer@redhat.com>
Fri, 23 Dec 2022 17:51:08 +0000 (18:51 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Dec 2022 08:03:23 +0000 (10:03 +0200)
* configure.ac (emacs_cv_alternate_stack): Include <stdlib.h>
for 'malloc's prototype.

configure.ac

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