Compilation failure of master
Julian Wollrath
Sat May 30 15:04:33 2020
Hi,
compiling master with ec9369eb38 as HEAD failed for me since the
function dev_listening was unknown. Blindly adding some #ifdef's, see
below, helped.
Cheers,
Julian
diff --git a/src/if-linux.c b/src/if-linux.c
index 42eeec24..7b78845a 100644
--- a/src/if-linux.c
+++ b/src/if-linux.c
@@ -892,8 +892,10 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm)
if (nlm->nlmsg_type == RTM_DELLINK) {
/* If are listening to a dev manager, let that remove
* the interface rather than the kernel. */
+#ifdef PLUGIN_DEV
if (dev_listening(ctx) < 1)
dhcpcd_handleinterface(ctx, -1, ifn);
+#endif
return 0;
}
@@ -911,8 +913,10 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm)
if (ifp == NULL) {
/* If are listening to a dev manager, let that announce
* the interface rather than the kernel. */
+#ifdef PLUGIN_DEV
if (dev_listening(ctx) < 1)
dhcpcd_handleinterface(ctx, 1, ifn);
+#endif
return 0;
}
--
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Archive administrator: postmaster@marples.name