about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-04-12 14:51:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-04-12 14:51:31 +0000
commitd2fd8b86cf6170ac106144e049ee0d7576e1c224 (patch)
tree95c7f58d6a6358d5ad8f37bd571647797a73cdc6
parentc358c64c1d33b24f2001079010d9460f6f29ac0a (diff)
downloadzsh-d2fd8b86cf6170ac106144e049ee0d7576e1c224.tar.gz
zsh-d2fd8b86cf6170ac106144e049ee0d7576e1c224.tar.xz
zsh-d2fd8b86cf6170ac106144e049ee0d7576e1c224.zip
Valentin Ochs: 28990: more changes needed for signals.
-rw-r--r--ChangeLog5
-rw-r--r--Src/system.h3
-rw-r--r--configure.ac1
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  <pws@csr.com>
 
+	* 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 <sys/time.h>
 #endif