diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-06-16 22:50:44 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-06-16 22:50:44 +0000 |
commit | 6c9cc0e4fc3ea34274b2b370c0430992b308c4c9 (patch) | |
tree | aa49d6e576d9176fb16454039270f070c0becef7 | |
parent | 554f89cd46f5e965baff1edb3d1d5b8235b4ac7f (diff) | |
download | zsh-6c9cc0e4fc3ea34274b2b370c0430992b308c4c9.tar.gz zsh-6c9cc0e4fc3ea34274b2b370c0430992b308c4c9.tar.xz zsh-6c9cc0e4fc3ea34274b2b370c0430992b308c4c9.zip |
25167: patch from Petr Salinger to define _GNU_SOURCE (for /dev/ptmx) when glibc is being used on non-linux platforms.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/system.h | 2 |
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. |