Browse Source

Merge pull request #11774 from neheb/netif

netifyd: fix compilation with libcxx
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
b3a661d84d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions
  1. +1
    -1
      net/netifyd/Makefile
  2. +11
    -0
      net/netifyd/patches/010-bind.patch

+ 1
- 1
net/netifyd/Makefile View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=netifyd PKG_NAME:=netifyd
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Darryl Sokoloski <darryl@egloo.ca> PKG_MAINTAINER:=Darryl Sokoloski <darryl@egloo.ca>
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later


+ 11
- 0
net/netifyd/patches/010-bind.patch View File

@ -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));

Loading…
Cancel
Save