diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-04-12 12:44:05 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-04-12 12:44:05 +0000 |
commit | c358c64c1d33b24f2001079010d9460f6f29ac0a (patch) | |
tree | 278c574ee9e2e95a1eedf1831ef84ba42ce2a361 | |
parent | 35ddd9c4bae1956932dc45b4af48391ac71da0a2 (diff) | |
download | zsh-c358c64c1d33b24f2001079010d9460f6f29ac0a.tar.gz zsh-c358c64c1d33b24f2001079010d9460f6f29ac0a.tar.xz zsh-c358c64c1d33b24f2001079010d9460f6f29ac0a.zip |
Valentin Ochs: 28989: define _POSIX_C_SOURCE
when testing for sigset_t in configure (needed for musl).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.ac | 3 |
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], |