]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
vlan: Move CONFIG_FULL_DYNAMIC_VLAN includes to proper places
authorJouni Malinen <j@w1.fi>
Sun, 26 Apr 2015 10:16:16 +0000 (13:16 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Apr 2015 10:36:55 +0000 (13:36 +0300)
All the system header files are supposed to be included before any other
internal header file apart from utils/includes.h.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/vlan_init.c

index baabbe33b76f61b5f4bbe467a58fff432cefe4d8..b89a1f431db595f9f82e47981d28348199ab5c04 100644 (file)
@@ -9,6 +9,13 @@
  */
 
 #include "utils/includes.h"
+#ifdef CONFIG_FULL_DYNAMIC_VLAN
+#include <net/if.h>
+#include <sys/ioctl.h>
+#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"
 
 #ifdef CONFIG_FULL_DYNAMIC_VLAN
 
-#include <net/if.h>
-#include <sys/ioctl.h>
-#include <linux/sockios.h>
-#include <linux/if_vlan.h>
-#include <linux/if_bridge.h>
-
 #include "drivers/priv_netlink.h"
 #include "utils/eloop.h"