mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
netifyd: fix compilation with libcxx
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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));
|
||||||
Reference in New Issue
Block a user