From e0bad0f82fedf451cfca2742f3611ed90cec8ee8 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sat, 31 Aug 2013 19:51:57 +0200 Subject: [PATCH] musl: fix libnetfilter_queue by defining _GNU_SOURCE to expose struct tcphdr --- .../libnetfilter_queue/libnetfilter_queue.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 base/musl/pkg/libnetfilter_queue/libnetfilter_queue.conf diff --git a/base/musl/pkg/libnetfilter_queue/libnetfilter_queue.conf b/base/musl/pkg/libnetfilter_queue/libnetfilter_queue.conf new file mode 100644 index 000000000..34dfa4549 --- /dev/null +++ b/base/musl/pkg/libnetfilter_queue/libnetfilter_queue.conf @@ -0,0 +1,17 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../musl/pkg/libnetfilter_queue/libnetfilter_queue.conf +# Copyright (C) 2013 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +# in musl struct tcphdr is exposed when defining _GNU_SOURCE +var_append CFLAGS ' ' "-D_GNU_SOURCE" +var_append configprefix ' ' 'CFLAGS=$CFLAGS'