cgi: add _GNU_SOURCE define to fix build error on musl
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 11:50:53 +0000 (13:50 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 11:50:53 +0000 (13:50 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
cgi.c

diff --git a/cgi.c b/cgi.c
index 62be0a3..a2a7e50 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -17,6 +17,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#define _GNU_SOURCE
 #include <libubox/blobmsg.h>
 #include "uhttpd.h"
 
 #include <libubox/blobmsg.h>
 #include "uhttpd.h"