diff options
| author | Roy Marples <roy@marples.name> | 2020-05-24 11:49:58 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-24 11:49:58 +0100 |
| commit | 00bb5ee068f7a72a516360913c95c639ef7e7518 (patch) | |
| tree | 23d93417187680b6ecc209c662f200c9bf3c9606 /src/privsep-root.c | |
| parent | 8542d6f9367311cccd94f1cfef3842f4ea1298c9 (diff) | |
| download | dhcpcd-00bb5ee068f7a72a516360913c95c639ef7e7518.tar.xz | |
privsep: Fix compile for prior without dev plugins
Diffstat (limited to 'src/privsep-root.c')
| -rw-r--r-- | src/privsep-root.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c index 6a82fb6b..198f224c 100644 --- a/src/privsep-root.c +++ b/src/privsep-root.c @@ -556,6 +556,7 @@ ps_root_recvmsg(void *arg) logerr(__func__); } +#ifdef PLUGIN_DEV static int ps_root_handleinterface(void *arg, int action, const char *ifname) { @@ -576,6 +577,7 @@ ps_root_handleinterface(void *arg, int action, const char *ifname) return (int)ps_sendcmd(ctx, ctx->ps_data_fd, PS_DEV_IFCMD, flag, ifname, strlen(ifname) + 1); } +#endif static int ps_root_startcb(void *arg) @@ -612,11 +614,13 @@ ps_root_startcb(void *arg) return -1; #endif +#ifdef PLUGIN_DEV /* Start any dev listening plugin which may want to * change the interface name provided by the kernel */ if ((ctx->options & (DHCPCD_MASTER | DHCPCD_DEV)) == (DHCPCD_MASTER | DHCPCD_DEV)) dev_start(ctx, ps_root_handleinterface); +#endif return 0; } |
