about summary refs log tree commit diff stats
path: root/termbox/termbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'termbox/termbox.c')
-rw-r--r--termbox/termbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/termbox/termbox.c b/termbox/termbox.c
index 79e6e3cc..e7757f9a 100644
--- a/termbox/termbox.c
+++ b/termbox/termbox.c
@@ -12,6 +12,10 @@
 #include <termios.h>
 #include <unistd.h>
 #include <wchar.h>
+/* hack: we can't define _XOPEN_SOURCE because that causes OpenBSD to not
+ * include SIGWINCH. But then this prototype is not included on Linux,
+ * triggering a warning. */
+extern int wcwidth (wchar_t);
 
 #include "termbox.h"