File xsupplicant-iwlib.patch of Package xsupplicant

Index: xsupplicant-1.2.8/configure.in
================================================================================
--- xsupplicant-1.2.8/configure.in
+++ xsupplicant-1.2.8/configure.in
@@ -119,7 +119,7 @@
    #ifndef __user
    #define __user
    #endif
-   #include <linux/wireless.h>])
+   #include <net/if.h>])
 
    AC_MSG_CHECKING([iwlib version])
    AC_TRY_COMPILE([#define HEADERS_KERNEL
@@ -127,7 +127,7 @@
 		   #ifndef __user
 		   #define __user
 		   #endif
-                   #include <linux/wireless.h>
+                   #include <net/if.h>
                    #include <iwlib.h>], 
                [iw_extract_event_stream(NULL, NULL, 0);], [AC_DEFINE(NEW_IWLIB) AC_MSG_RESULT([3 params])], [AC_MSG_RESULT([2 params])])
 fi
--- xsupplicant-1.2.8/src/cardif/linux/cardif_linux_rtnetlink.c
+++ xsupplicant-1.2.8/src/cardif/linux/cardif_linux_rtnetlink.c
@@ -208,7 +208,7 @@
 #include <sys/ioctl.h>
 #include "netlink.h"
 #include "rtnetlink.h"
-#include <linux/if.h>
+#include <net/if.h>
 #include <linux/if_packet.h>
 #include <math.h>
 #include <linux/wireless.h>
--- xsupplicant-1.2.8/src/cardif/linux/cardif_linux_wext.c
+++ xsupplicant-1.2.8/src/cardif/linux/cardif_linux_wext.c
@@ -204,7 +204,7 @@
 #include <linux/types.h>
 #include <linux/socket.h>
 #include <linux/compiler.h>
-#include <linux/wireless.h>
+#include <net/if.h>
 #include <iwlib.h>
 #include <linux/if_packet.h>
 #include <linux/netlink.h>