summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-09 18:57:20 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-09 18:57:20 +0200
commit5c8785ac0d0d7943de370ae4eefd87f56bb65ba9 (patch)
tree6f568bb0487034a5528e8d68b7e02a2649dabe3f
parent23880ff5333c3ca1da1250e8821091f6ae62f566 (diff)
proto-shell: add _GNU_SOURCE define to get O_DIRECTORY
-rw-r--r--proto-shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 41031c3..65ade12 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>