define _GNU_SOURCE and include stdio.h in ubus.c to fix a compile error
authorFelix Fietkau <nbd@openwrt.org>
Wed, 12 Oct 2011 14:16:28 +0000 (16:16 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 12 Oct 2011 14:16:28 +0000 (16:16 +0200)
ubus.c

diff --git a/ubus.c b/ubus.c
index c9b10e8d7b43a577dc612468600baaecb958d9ff..ba9fb9e3bd75c789340583c5ab0b4f6184577425 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -1,4 +1,7 @@
+#define _GNU_SOURCE
+
 #include <string.h>
+#include <stdio.h>
 
 #include "netifd.h"
 #include "interface.h"