conntrackd: cthelper: ssdp: fix build with musl
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")
Signed-off-by Stijn Tintel <[email protected]>
--- src/helpers/ssdp.c | 1 + 1 file changed, 1 insertion(+)
src/helpers/ssdp.c +1 -0
@@ -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
Quoted 5 lines · Stijn Tintel
For musl libc to expose the members of
struct tcphdr,_GNU_SOURCEneeds to be defined.Fixes b61c4543cbde ("conntrackd: cthelper: ssdp: Track UPnP eventing")Signed-off-by Stijn Tintel <[email protected]>
Applied, thanks.