]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Fix compile without INET
authorRoy Marples <roy@marples.name>
Fri, 26 Jun 2026 13:43:25 +0000 (14:43 +0100)
committerRoy Marples <roy@marples.name>
Fri, 26 Jun 2026 13:43:25 +0000 (14:43 +0100)
src/privsep-inet.c

index 8fa0b04c93d672b3d07e2c34cef1eba5cfa0d4a9..a8f6f5ea1447d18bf53d3ec67bc7d1895ebf3417 100644 (file)
@@ -506,10 +506,12 @@ ps_inet_recvmsgpspcb(void *arg, struct ps_msghdr *psm, struct msghdr *msg)
 #endif
 
        switch (psm->ps_cmd) {
+#ifdef INET6
        case PS_ND:
                if (!ps_inet_validnd(msg))
                        return -1;
                break;
+#endif
        default:
                errno = EINVAL;
                return -1;