diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-28 22:28:59 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-28 22:28:59 +1100 |
commit | ac0c8a533d7b79f8404f904a05655e48aa792a45 (patch) | |
tree | d5b688db3a262dd73aa9fffd208ac1c4b8ce3cd4 /includes.h | |
parent | 3a4634f67415ae6c69b97f042b284b8d98955f97 (diff) |
- (dtucker) [includes.h] Bug #1122: __USE_GNU is a glibc internal macro, use
_GNU_SOURCE instead. Patch from t8m at centrum.cz.
Diffstat (limited to 'includes.h')
-rw-r--r-- | includes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes.h b/includes.h index 351dd2ac0..12d948b6f 100644 --- a/includes.h +++ b/includes.h | |||
@@ -21,6 +21,8 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg } | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | 23 | ||
24 | #define _GNU_SOURCE /* activate extra prototypes for glibc */ | ||
25 | |||
24 | #include <stdarg.h> | 26 | #include <stdarg.h> |
25 | #include <stdio.h> | 27 | #include <stdio.h> |
26 | #include <ctype.h> | 28 | #include <ctype.h> |
@@ -67,7 +69,6 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg } | |||
67 | #ifdef HAVE_NEXT | 69 | #ifdef HAVE_NEXT |
68 | # include <libc.h> | 70 | # include <libc.h> |
69 | #endif | 71 | #endif |
70 | #define __USE_GNU /* before unistd.h, activate extra prototypes for glibc */ | ||
71 | #include <unistd.h> /* For STDIN_FILENO, etc */ | 72 | #include <unistd.h> /* For STDIN_FILENO, etc */ |
72 | #include <termios.h> /* Struct winsize */ | 73 | #include <termios.h> /* Struct winsize */ |
73 | 74 | ||