From d2fd8b86cf6170ac106144e049ee0d7576e1c224 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 12 Apr 2011 14:51:31 +0000 Subject: Valentin Ochs: 28990: more changes needed for signals. --- ChangeLog | 5 ++++- Src/system.h | 3 +-- configure.ac | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8f0317c3..a43fee26c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-04-12 Peter Stephenson + * Valention Ochs: 28990: configure.ac, Src/system.h: more + changes needed for signals. + * Valentin Ochs: 28989: configure.ac: define _POSIX_C_SOURCE when testing for sigset_t (needed for musl). @@ -14438,5 +14441,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5243 $ +* $Revision: 1.5244 $ ***************************************************** diff --git a/Src/system.h b/Src/system.h index 1c737087f..86f035f17 100644 --- a/Src/system.h +++ b/Src/system.h @@ -37,13 +37,12 @@ #endif #endif -#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) /* * Turn on numerous extensions. * This is in order to get the functions for manipulating /dev/ptmx. */ #define _GNU_SOURCE 1 -#endif +#define _POSIX_C_SOURCE 200809L /* NeXT has half-implemented POSIX support * * which currently fools configure */ diff --git a/configure.ac b/configure.ac index d1c5f45fb..27a17e276 100644 --- a/configure.ac +++ b/configure.ac @@ -1015,6 +1015,7 @@ AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec, dnl Check for struct timezone since some old SCO versions do not define it zsh_TYPE_EXISTS([ +#define _GNU_SOURCE 1 #ifdef HAVE_SYS_TIME_H # include #endif -- cgit 1.4.1