iperf3: use -D_GNU_SOURCE to fix build error on musl
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Mar 2015 04:26:57 +0000 (04:26 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Mar 2015 04:26:57 +0000 (04:26 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45103 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/network/utils/iperf3/Makefile

index 3d9c84a..f36b381 100644 (file)
@@ -30,6 +30,7 @@ define Package/iperf3
   URL:=http://sourceforge.net/projects/iperf/
 endef
 
+TARGET_CFLAGS += -D_GNU_SOURCE
 CONFIGURE_ARGS += --disable-shared
 
 MAKE_FLAGS += noinst_PROGRAMS=