dhcp.c: add _GNU_SOURCE define to fix build error with musl
authorFelix Fietkau <nbd@openwrt.org>
Sun, 29 Jun 2014 20:59:05 +0000 (22:59 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 29 Jun 2014 20:59:05 +0000 (22:59 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 9dbea282b739bc11075869cafc269b26e3a2d1c1..5f7744ac02ae34c80e39e19b3046fcf1f283d24d 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -15,6 +15,7 @@
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#define _GNU_SOURCE
 #include <sys/socket.h>
 #include <stdio.h>
 #include <string.h>