From eb384c24fd1b8604560dfeb6add7e698aab1e2c0 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 28 May 2016 15:15:52 +0200 Subject: [PATCH] package/iptraf-ng: really add _GNU_SOURCE in CFLAGS When iptraf-ng is build with musl, it needs _GNU_SOURCE in CFLAGS to define the content of "struct tcphdr". iptraf-ng.mk try to add _GNU_SOURCE in CFLAGS but it's not taken into account. Add it using IPTRAF_NG_CONF_ENV instead of IPTRAF_NG_MAKE_ENV. Fixes: http://autobuild.buildroot.net/results/a1b/a1b18f2e3d075d349c19536a7c5553f24b75a323 Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/iptraf-ng/iptraf-ng.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/iptraf-ng/iptraf-ng.mk b/package/iptraf-ng/iptraf-ng.mk index ea64e1dd23..a36c7089fb 100644 --- a/package/iptraf-ng/iptraf-ng.mk +++ b/package/iptraf-ng/iptraf-ng.mk @@ -11,7 +11,9 @@ IPTRAF_NG_LICENSE_FILES = LICENSE IPTRAF_NG_DEPENDENCIES = ncurses IPTRAF_NG_MAKE_ENV = \ - NCURSES_LDFLAGS="-lpanel -lncurses" \ + NCURSES_LDFLAGS="-lpanel -lncurses" + +IPTRAF_NG_CONF_ENV = \ CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" $(eval $(autotools-package)) -- 2.30.2