diff --git a/src/Cedar/VLanUnix.c b/src/Cedar/VLanUnix.c index 1bc5c73e..1095903d 100644 --- a/src/Cedar/VLanUnix.c +++ b/src/Cedar/VLanUnix.c @@ -696,7 +696,7 @@ bool UnixVLanCreate(char *name, UCHAR *mac_address, bool create_up) // Set a VLAN up/down bool UnixVLanSetState(char* name, bool state_up) { -#ifdef UNIX_LINUX +#if defined(UNIX_LINUX) || defined(UNIX_BSD) UNIX_VLAN_LIST *t, tt; struct ifreq ifr; int s; @@ -742,7 +742,7 @@ bool UnixVLanSetState(char* name, bool state_up) close(s); } UnlockList(unix_vlan); -#endif // UNIX_LINUX +#endif // UNIX_LINUX || UNIX_BSD return true; }