netifyd: fix compilation with libcxx 11774/head
authorRosen Penev <rosenp@gmail.com>
Tue, 17 Mar 2020 23:23:27 +0000 (16:23 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 6 Apr 2020 02:34:19 +0000 (19:34 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/netifyd/Makefile
net/netifyd/patches/010-bind.patch [new file with mode: 0644]

index c64cd15d8795b75d07c4ed7136bb96315e5bfb61..8fbb92b288b16434e8360c44ed4ae4cfb7dc1bb1 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netifyd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Darryl Sokoloski <darryl@egloo.ca>
 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 (file)
index 0000000..a5dafb1
--- /dev/null
@@ -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));