c079ae
Avoid an implicit declaration of the malloc function.  Improves C99
c079ae
compatibility.
c079ae
c079ae
Submitted upstream:
c079ae
c079ae
  <https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg01020.html>
c079ae
c079ae
diff --git a/configure.ac b/configure.ac
c079ae
index cc390d40b33a1d8f..7be08de740cfc486 100644
c079ae
--- a/configure.ac
c079ae
+++ b/configure.ac
c079ae
@@ -4590,6 +4590,7 @@ AC_CACHE_CHECK([whether signals can be handled on alternate stack],
c079ae
 	       [emacs_cv_alternate_stack],
c079ae
   [AC_COMPILE_IFELSE(
c079ae
      [AC_LANG_PROGRAM([[#include <signal.h>
c079ae
+			#include <stdlib.h>
c079ae
 		      ]],
c079ae
 		      [[stack_t ss;
c079ae
 			struct sigaction sa;