From 04b1e7f7ccc8c243f733524e329c8c335f32ebad Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 11 Dec 2019 19:54:51 -0800 Subject: [PATCH] bfdd: Fix compilation with uClibc-ng Signed-off-by: Rosen Penev --- net/bfdd/Makefile | 4 +++- net/bfdd/patches/010-uclibc.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 net/bfdd/patches/010-uclibc.patch diff --git a/net/bfdd/Makefile b/net/bfdd/Makefile index 6f2df65e4..6cd5beb8a 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:=1 +PKG_RELEASE:=2 PKG_SOURCE_VERSION:=c54534beb524afc3972039f57b56ec65332b43f7 PKG_SOURCE_URL:=https://codeload.github.com/rzalamena/bfdd/tar.gz/$(PKG_SOURCE_VERSION)? @@ -46,6 +46,8 @@ 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/010-uclibc.patch b/net/bfdd/patches/010-uclibc.patch new file mode 100644 index 000000000..4c603efbd --- /dev/null +++ b/net/bfdd/patches/010-uclibc.patch @@ -0,0 +1,13 @@ +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