PATCH - Fix compile on NetBSD for wired driver

Roy Marples roy at marples.name
Wed Feb 10 03:22:11 PST 2016


Fix compile on NetBSD for wired driver
-------------- next part --------------
commit c53c842d1e521612876b732c5ce12d3a174dd74c
Author: Roy Marples <roy at marples.name>
Date:   Wed Feb 10 11:16:19 2016 +0000

    Shuffle wpa_supplicant includes above system ones so that
    to fix a compile problem on NetBSD where if_type #define
    conflicts with the wpa_driver_if_type enum.
    
    Signed-off-by: Roy Marples <roy at marples.name>

diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c
index f95f3cc..15e82df 100644
--- a/src/drivers/driver_wired.c
+++ b/src/drivers/driver_wired.c
@@ -8,6 +8,11 @@
  */
 
 #include "includes.h"
+
+#include "common.h"
+#include "eloop.h"
+#include "driver.h"
+
 #include <sys/ioctl.h>
 #include <net/if.h>
 #ifdef __linux__
@@ -23,10 +28,6 @@
 #include <sys/sockio.h>
 #endif /* __sun__ */
 
-#include "common.h"
-#include "eloop.h"
-#include "driver.h"
-
 #ifdef _MSC_VER
 #pragma pack(push, 1)
 #endif /* _MSC_VER */


More information about the Hostap mailing list