diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 00:30:36 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 00:30:36 +0200 |
commit | d6e194c91c9d3813e62e9e323bbcb1df55e11959 (patch) | |
tree | 9be54dc11abe44a855be0ead2349826797e8f2f2 /call/call.c | |
parent | 09e3a4e4ec17102e6daeee792ae02c1a8601b5eb (diff) |
call: Fix use of glibc feature selection macros
__USE_XOPEN should not be used directly by application code. Other
feature selection macros must be defined before inclusion of any system
header files.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call/call.c')
-rw-r--r-- | call/call.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/call/call.c b/call/call.c index 1f3a452..172f491 100644 --- a/call/call.c +++ b/call/call.c @@ -17,6 +17,10 @@ /* 02.02.1997 removed NETROM_PACLEN setting to match Jonathon removing it from kernel (VK2KTJ) */ +#define _DEFAULT_SOURCE +#define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED + #include <sys/types.h> #include <utime.h> #include <limits.h> @@ -36,10 +40,8 @@ #include <sys/wait.h> #include <termios.h> #include <unistd.h> -#define __USE_XOPEN #include <wchar.h> #include <wctype.h> -#define _XOPEN_SOURCE_EXTENDED 1 #include <ncursesw/ncurses.h> #include <locale.h> #include <iconv.h> |