aboutsummaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-25 22:49:51 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-25 22:49:51 +0100
commit427a98693eb6600d3d28d13d8a19f38e94675725 (patch)
tree9858ed11b32ebdf3c7a17e21dd9b438c0a08f2d8 /demo.c
parent447a3e7ab924c492214f1bbd2f25b61022e30bbc (diff)
downloadtermo-427a98693eb6600d3d28d13d8a19f38e94675725.tar.gz
termo-427a98693eb6600d3d28d13d8a19f38e94675725.tar.xz
termo-427a98693eb6600d3d28d13d8a19f38e94675725.zip
optarg and friends want _XOPEN_SOURCE 600, and <unistd.h> - Petr Pavlu
Diffstat (limited to 'demo.c')
-rw-r--r--demo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/demo.c b/demo.c
index 11d85f2..1b148b5 100644
--- a/demo.c
+++ b/demo.c
@@ -1,5 +1,8 @@
+// we want optarg
+#define _XOPEN_SOURCE 600
+
#include <stdio.h>
-#include <getopt.h>
+#include <unistd.h>
#include <errno.h>
#include "termkey.h"