aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stfl/ncurses.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/stfl/ncurses.patch')
-rw-r--r--testing/stfl/ncurses.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/stfl/ncurses.patch b/testing/stfl/ncurses.patch
index c74252a144..215d35d024 100644
--- a/testing/stfl/ncurses.patch
+++ b/testing/stfl/ncurses.patch
@@ -1,3 +1,5 @@
+We need -D_XOPEN_SOURCE_EXTENDED for widechar in ncurses
+
diff --git a/stfl_internals.h b/stfl_internals.h
index 3f9f45b..1559626 100644
--- a/stfl_internals.h
@@ -11,3 +13,14 @@ index 3f9f45b..1559626 100644
#include <pthread.h>
struct stfl_widget_type;
+--- ./Makefile.orig
++++ ./Makefile
+@@ -21,7 +21,7 @@
+ include Makefile.cfg
+
+ export CC = gcc -pthread
+-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
++export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -D_XOPEN_SOURCE_EXTENDED -fPIC
+ export LDLIBS += -lncursesw
+
+ SONAME := libstfl.so.0