]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
It turns out we can use these defines here.
authorRoy Marples <roy@marples.name>
Tue, 30 Aug 2022 12:53:44 +0000 (13:53 +0100)
committerRoy Marples <roy@marples.name>
Tue, 30 Aug 2022 12:53:44 +0000 (13:53 +0100)
src/if.h

index b8dd1a0c65ec99c12ca6773952832ae5de582583..ac5c5721a9e2172b31820d2ebcad6d52abdb2fec 100644 (file)
--- a/src/if.h
+++ b/src/if.h
@@ -127,7 +127,9 @@ struct priv {
 #ifdef INET6
        int pf_inet6_fd;
 #endif
-       int pf_link_fd; /* NetBSD only, but hard to define for here */
+#if defined(SIOCALIFADDR) && defined(IFLR_ACTIVE) /*NetBSD */
+       int pf_link_fd;
+#endif
 };
 #endif
 #ifdef __linux__