packages/net/bfdd/patches/002-ipv6_musl_fix.patch
Rosen Penev b90ce88d03
bfdd: fix compilation with glibc
Remove uClibc-ng patch as it's not in the tree anymore.

Also remove the _GNU_SOURCE CFLAG for the same reason.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-30 16:53:53 -08:00

18 lines
366 B
Diff

--- a/bfd_packet.c
+++ b/bfd_packet.c
@@ -29,12 +29,15 @@
#define _UAPI_IPV6_H
#endif /* _UAPI_IPV6_H */
+#include <features.h>
#include <linux/filter.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <linux/udp.h>
#include <linux/ip.h>
+#ifdef __GLIBC__
#include <linux/ipv6.h>
+#endif
#include <arpa/inet.h>
#include <sys/types.h>