]> granicus.if.org Git - procps-ng/commitdiff
Add _XOPEN_SOURCE_EXTENDED definition in WATCH8BIT
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>
Sun, 5 Jul 2015 19:37:48 +0000 (14:37 -0500)
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>
Sun, 5 Jul 2015 19:37:48 +0000 (14:37 -0500)
This is required for POSIX correctness (see
http://lists.gnu.org/archive/html/bug-ncurses/2011-07/msg00004.html),
and additionally is required for building procps against the musl C
library.

watch.c

diff --git a/watch.c b/watch.c
index 40beacad487767d630aeef8ff56dcc3fe5721f8d..de46730ce6fbf98788f4167b4addc28e9825d697 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -49,6 +49,7 @@
 #include <time.h>
 #include <unistd.h>
 #ifdef WITH_WATCH8BIT
+# define _XOPEN_SOURCE_EXTENDED 1
 # include <wchar.h>
 # include <wctype.h>
 # include <ncursesw/ncurses.h>