From: Philip Paeps Date: Tue, 12 Oct 2021 08:07:28 +0000 (+0800) Subject: privsep: Fix getting interface VLANID on BSD (#58) X-Git-Tag: v10.0.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe668b5399c73b91bbf59f0d3a1f53d4f465d880;p=thirdparty%2Fdhcpcd.git privsep: Fix getting interface VLANID on BSD (#58) Include relevant headers for the definition of SIOCGETVLAN. This fixes DHCPv6 Prefix Delegation where a prefix is delegated to several VLAN interfaces on the same physical interface. --- diff --git a/src/privsep-bsd.c b/src/privsep-bsd.c index f13d329f..d8ca8063 100644 --- a/src/privsep-bsd.c +++ b/src/privsep-bsd.c @@ -33,6 +33,14 @@ #include #include #include +#ifdef __NetBSD__ +#include +#include /* Needs netinet/if_ether.h */ +#elif defined(__DragonFly__) +#include +#else +#include +#endif #ifdef __DragonFly__ # include #else