aports/main/ndisc6/remove-undef-gnu-source.patch
Kevin Daudt b04265874a main/ndisc6: move from community
In an ipv6-only slaac setup, there is no DHCP server to provide DNS
servers to use. rdnssd, part of ndisc6[0] is a userspace program that
collects this information from router advertisements and updates
resolv.conf.

By having this in main, this can be available in the base setup, so that
Alpine Linux can be installed in an IPV6-only setup.

[0]: https://www.remlab.net/ndisc6/
2020-10-27 19:07:12 +00:00

18 lines
392 B
Diff

Reason: Without _GNU_SOURCE, tcphdr is not defined and leads to build errors
Upstream: no
diff --git a/src/trace-tcp.c b/src/trace-tcp.c.new
index 5aba9d4d2d..1bcc40cdb1 100644
--- a/src/trace-tcp.c
+++ b/src/trace-tcp.c.new
@@ -21,9 +21,6 @@
# include <config.h>
#endif
-#undef _GNU_SOURCE
-#define _DEFAULT_SOURCE 1
-
#include <string.h>
#include <inttypes.h>
#include <stdalign.h>