about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-04-14 09:11:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-04-14 09:11:02 +0000
commit7657ea65dcebc6585e583b8295004e9cda5431ae (patch)
tree8d90f2c314a3afbc26b2b9682e365f4f3b71380a /Src/system.h
parent8020750b3c8ac68dcd7d402a5aa9751fabd26704 (diff)
downloadzsh-7657ea65dcebc6585e583b8295004e9cda5431ae.tar.gz
zsh-7657ea65dcebc6585e583b8295004e9cda5431ae.tar.xz
zsh-7657ea65dcebc6585e583b8295004e9cda5431ae.zip
28997: make --enable-libc-musl explicit
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index 86f035f17..33b0af2f3 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -37,12 +37,16 @@
 #endif
 #endif
 
+#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) || defined(LIBC_MUSL)
 /*
  * Turn on numerous extensions.
  * This is in order to get the functions for manipulating /dev/ptmx.
  */
 #define _GNU_SOURCE 1
+#endif
+#ifdef LIBC_MUSL
 #define _POSIX_C_SOURCE 200809L
+#endif
 
 /* NeXT has half-implemented POSIX support *
  * which currently fools configure         */