From e26b81d1847b466fecb8e7b9c7917d0e04822a4b Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 17 Mar 2020 16:23:27 -0700 Subject: [PATCH] netifyd: fix compilation with libcxx Signed-off-by: Rosen Penev --- net/netifyd/Makefile | 2 +- net/netifyd/patches/010-bind.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/netifyd/patches/010-bind.patch diff --git a/net/netifyd/Makefile b/net/netifyd/Makefile index c64cd15d8..8fbb92b28 100644 --- a/net/netifyd/Makefile +++ b/net/netifyd/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=netifyd -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Darryl Sokoloski PKG_LICENSE:=GPL-3.0-or-later diff --git a/net/netifyd/patches/010-bind.patch b/net/netifyd/patches/010-bind.patch new file mode 100644 index 000000000..a5dafb1e2 --- /dev/null +++ b/net/netifyd/patches/010-bind.patch @@ -0,0 +1,11 @@ +--- a/src/nd-netlink.cpp ++++ b/src/nd-netlink.cpp +@@ -144,7 +144,7 @@ ndNetlink::ndNetlink(const nd_ifaces &ifaces) + throw ndNetlinkException(strerror(rc)); + } + +- if (bind(nd, ++ if (::bind(nd, + (struct sockaddr *)&sa, sizeof(struct sockaddr_nl)) < 0) { + rc = errno; + nd_printf("Error binding netlink socket: %s\n", strerror(rc));