* [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl
@ 2017-08-23 7:29 Stijn Tintel
2017-08-24 14:56 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Stijn Tintel @ 2017-08-23 7:29 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl
2017-08-23 7:29 [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl Stijn Tintel
@ 2017-08-24 14:56 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-08-24 14:56 UTC (permalink / raw)
To: Stijn Tintel; +Cc: netfilter-devel
On Wed, Aug 23, 2017 at 10:29:28AM +0300, Stijn Tintel wrote:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-24 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23 7:29 [PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl Stijn Tintel
2017-08-24 14:56 ` Pablo Neira Ayuso
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).