[Buildroot] [PATCH] package/iptraf-ng: really add _GNU_SOURCE in CFLAGS

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat May 28 13:52:02 UTC 2016


Hello,

On Sat, 28 May 2016 15:15:52 +0200, Romain Naour wrote:
> 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 <romain.naour at gmail.com>
> ---
>  package/iptraf-ng/iptraf-ng.mk | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list