From e0f421dcab1125bee0ea0798d78f7105632c020f Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 29 Mar 2015 04:26:57 +0000
Subject: [PATCH] iperf3: use -D_GNU_SOURCE to fix build error on musl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45103
---
 package/network/utils/iperf3/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/network/utils/iperf3/Makefile b/package/network/utils/iperf3/Makefile
index 3d9c84ae25..f36b381dac 100644
--- a/package/network/utils/iperf3/Makefile
+++ b/package/network/utils/iperf3/Makefile
@@ -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=
-- 
GitLab