]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compile on NetBSD for vlan
authorRoy Marples <roy@marples.name>
Wed, 10 Feb 2016 11:53:41 +0000 (11:53 +0000)
committerJouni Malinen <j@w1.fi>
Thu, 18 Feb 2016 15:09:14 +0000 (17:09 +0200)
Shuffle includes above system ones so to fix a compile issue
on NetBSD where the if_type #define from <net/if.h>
conflicts with the wpa_driver_if_type enum.

Signed-off-by: Roy Marples <roy@marples.name>
src/ap/vlan_init.c

index 8709e3d4e4135aa17646413b0e12fcdc5c737365..8eab6cb4ce5a5e15cb39e812cc6320413d02acfc 100644 (file)
@@ -9,13 +9,6 @@
  */
 
 #include "utils/includes.h"
-#include <net/if.h>
-#include <sys/ioctl.h>
-#ifdef CONFIG_FULL_DYNAMIC_VLAN
-#include <linux/sockios.h>
-#include <linux/if_vlan.h>
-#include <linux/if_bridge.h>
-#endif /* CONFIG_FULL_DYNAMIC_VLAN */
 
 #include "utils/common.h"
 #include "hostapd.h"
 #include "vlan_init.h"
 #include "vlan_util.h"
 
+#include <net/if.h>
+#include <sys/ioctl.h>
+#ifdef CONFIG_FULL_DYNAMIC_VLAN
+#include <linux/sockios.h>
+#include <linux/if_vlan.h>
+#include <linux/if_bridge.h>
+#endif /* CONFIG_FULL_DYNAMIC_VLAN */
+
 
 #ifdef CONFIG_FULL_DYNAMIC_VLAN