From b90ce88d036626a67fd1c808635fd7d77cff4bb0 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 30 Dec 2020 15:28:49 -0800 Subject: [PATCH] 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 --- net/bfdd/Makefile | 4 +--- net/bfdd/patches/002-ipv6_musl_fix.patch | 16 ++++++++++++---- net/bfdd/patches/010-uclibc.patch | 13 ------------- 3 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 net/bfdd/patches/010-uclibc.patch diff --git a/net/bfdd/Makefile b/net/bfdd/Makefile index 16b9b096b..fb528a681 100644 --- a/net/bfdd/Makefile +++ b/net/bfdd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bfdd PKG_SOURCE_DATE:=2019-08-22 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_VERSION:=c54534beb524afc3972039f57b56ec65332b43f7 PKG_SOURCE_URL:=https://codeload.github.com/rzalamena/bfdd/tar.gz/$(PKG_SOURCE_VERSION)? @@ -46,8 +46,6 @@ define Package/bfdd/conffiles /etc/bfdd/bfdd.json endef -TARGET_CFLAGS += -D_GNU_SOURCE - define Package/bfdd/install $(INSTALL_DIR) \ $(1)/usr/sbin \ diff --git a/net/bfdd/patches/002-ipv6_musl_fix.patch b/net/bfdd/patches/002-ipv6_musl_fix.patch index 8ee41b930..a2f36864d 100644 --- a/net/bfdd/patches/002-ipv6_musl_fix.patch +++ b/net/bfdd/patches/002-ipv6_musl_fix.patch @@ -1,10 +1,18 @@ ---- a/bfd_packet.c 2019-08-15 02:45:47.270120616 +0300 -+++ b/bfd_packet.c 2019-08-15 02:44:38.266117706 +0300 -@@ -34,7 +34,6 @@ +--- a/bfd_packet.c ++++ b/bfd_packet.c +@@ -29,12 +29,15 @@ + #define _UAPI_IPV6_H + #endif /* _UAPI_IPV6_H */ + ++#include + #include + #include #include #include #include --#include ++#ifdef __GLIBC__ + #include ++#endif #include #include diff --git a/net/bfdd/patches/010-uclibc.patch b/net/bfdd/patches/010-uclibc.patch deleted file mode 100644 index 4c603efbd..000000000 --- a/net/bfdd/patches/010-uclibc.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/bfd_packet.c b/bfd_packet.c -index e8f99f9..2c9fa91 100644 ---- a/bfd_packet.c -+++ b/bfd_packet.c -@@ -29,6 +29,8 @@ - #define _UAPI_IPV6_H - #endif /* _UAPI_IPV6_H */ - -+#define _GNU_SOURCE -+ - #include - #include - #include