Skip to contentSkip to conversation

conntrackd: cthelper: ssdp: fix build with musl

PATCH Applied Stijn Tintel 2 participants 2 messages Aug 23, 2017 – Aug 24, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conntrackd: cthelper: ssdp: fix build with musl

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

Fixes b61c4543cbde ("conntrackd: cthelper: ssdp: Track UPnP eventing")
---
 src/helpers/ssdp.c | 1 +
 1 file changed, 1 insertion(+)
src/helpers/ssdp.c +1 -0
index 1f7f76f..58658e3 100644
@@ -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>
Signature · 1 line
2.13.5
maintainer Applied
#1 lore raw
Quoted 5 lines · Stijn Tintel

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

Fixes b61c4543cbde ("conntrackd: cthelper: ssdp: Track UPnP eventing")

Applied, thanks.