netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stijn Tintel <stijn@linux-ipv6.be>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl
Date: Wed, 23 Aug 2017 10:29:28 +0300	[thread overview]
Message-ID: <20170823072928.18380-1-stijn@linux-ipv6.be> (raw)

For musl libc to expose the members of `struct tcphdr`, _GNU_SOURCE
needs to be defined.

Fixes: b61c4543cbde ("conntrackd: cthelper: ssdp: Track UPnP eventing")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
---
 src/helpers/ssdp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/helpers/ssdp.c b/src/helpers/ssdp.c
index 1f7f76f..58658e3 100644
--- a/src/helpers/ssdp.c
+++ b/src/helpers/ssdp.c
@@ -49,6 +49,7 @@
 #include <stdlib.h>
 #include <arpa/inet.h>
 #include <netinet/ip.h>
+#define _GNU_SOURCE
 #include <netinet/tcp.h>
 #include <netinet/udp.h>
 #include <libmnl/libmnl.h>
-- 
2.13.5


             reply	other threads:[~2017-08-23  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23  7:29 Stijn Tintel [this message]
2017-08-24 14:56 ` [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170823072928.18380-1-stijn@linux-ipv6.be \
    --to=stijn@linux-ipv6.be \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).