From: Roy Marples Date: Tue, 30 Aug 2022 12:53:44 +0000 (+0100) Subject: It turns out we can use these defines here. X-Git-Tag: v10.0.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d5425695815498b8be8a004bb166e7d8cf322aa;p=thirdparty%2Fdhcpcd.git It turns out we can use these defines here. --- diff --git a/src/if.h b/src/if.h index b8dd1a0c..ac5c5721 100644 --- 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__