[PATCH conntrack-tools] conntrackd: cthelper: ssdp: fix build with musl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux