iperf3: use -D_GNU_SOURCE to fix build error on musl
[openwrt.git] / 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=