about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cf1bfc19b..e8f0317c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-12  Peter Stephenson  <pws@csr.com>
+
+	* Valentin Ochs: 28989: configure.ac: define _POSIX_C_SOURCE
+	when testing for sigset_t (needed for musl).
+
 2011-04-11  Peter Stephenson  <pws@csr.com>
 
 	* users/15953: Src/builtin.c: handle EINTR when using read -k or
@@ -14433,5 +14438,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5242 $
+* $Revision: 1.5243 $
 *****************************************************
diff --git a/configure.ac b/configure.ac
index 91e169ce5..d1c5f45fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -992,7 +992,8 @@ dnl <sys/types.h> and <signal.h>.  Others might need
 dnl to be added.
 AC_CACHE_CHECK(for sigset_t, zsh_cv_type_sigset_t,
 [AC_TRY_COMPILE(
-[#include <sys/types.h>
+[#define _POSIX_C_SOURCE 200809L
+#include <sys/types.h>
 #include <signal.h>], [sigset_t tempsigset;],
   zsh_cv_type_sigset_t=yes, zsh_cv_type_sigset_t=no)])
 AH_TEMPLATE([sigset_t],