From: Rosen Penev Date: Tue, 17 Mar 2020 23:23:27 +0000 (-0700) Subject: netifyd: fix compilation with libcxx X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e26b81d1847b466fecb8e7b9c7917d0e04822a4b;p=openwrt-packages.git netifyd: fix compilation with libcxx Signed-off-by: Rosen Penev --- 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));