* m4/regex.m4 (gl_REGEX): Include <malloc.h> before testing for
M_CHECK_ACTION.
+2024-10-26 Bruno Haible <bruno@clisp.org>
+
+ regex: Make configure test more maintainable.
+ * m4/regex.m4 (gl_REGEX): Include <malloc.h> before testing for
+ M_CHECK_ACTION.
+
2024-10-26 Bruno Haible <bruno@clisp.org>
execute, spawn-pipe: Fix compilation error on Cygwin (regr. 2024-10-22).
# regex.m4
-# serial 75
+# serial 76
dnl Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#include <limits.h>
#include <string.h>
+ #if HAVE_MALLOC_H
+ # include <malloc.h> /* defines M_CHECK_ACTION on glibc */
+ #endif
+
#if defined M_CHECK_ACTION || HAVE_DECL_ALARM
# include <signal.h>
# include <unistd.h>
#endif
- #if HAVE_MALLOC_H
- # include <malloc.h>
- #endif
-
#ifdef M_CHECK_ACTION
/* Exit with distinguishable exit code. */
static void sigabrt_no_core (int sig) { raise (SIGTERM); }