about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Src/system.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7027638b2..1297b1382 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16  Clint Adams  <clint@zsh.org>
+
+	* 25167: Src/system.h: patch from Petr Salinger to define
+	_GNU_SOURCE (for /dev/ptmx) when glibc is being used on
+	non-linux platforms.
+
 2008-06-16  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Bart: 25164: Doc/Zsh/expn.yo: typo.
diff --git a/Src/system.h b/Src/system.h
index 8449b1bd6..7e2cb59f6 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -37,7 +37,7 @@
 #endif
 #endif
 
-#ifdef __linux
+#if defined(__linux) || defined(__GLIBC__)
 /*
  * Turn on numerous extensions.
  * This is in order to get the functions for manipulating /dev/ptmx.