From 628a82a563690212334543bca730352ad2d15f34 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 10 Jan 2007 01:36:22 +0000 Subject: [PATCH] add a patch to fix xsupplicant build on 2.6.19 (see [6052]) SVN-Revision: 6056 --- .../patches/004-linux_2.6.19_wireless_h.patch | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 net/xsupplicant/patches/004-linux_2.6.19_wireless_h.patch diff --git a/net/xsupplicant/patches/004-linux_2.6.19_wireless_h.patch b/net/xsupplicant/patches/004-linux_2.6.19_wireless_h.patch new file mode 100644 index 000000000..2949c0cc1 --- /dev/null +++ b/net/xsupplicant/patches/004-linux_2.6.19_wireless_h.patch @@ -0,0 +1,65 @@ +diff -ruN xsupplicant-1.2.8-old/configure xsupplicant-1.2.8-new/configure +--- xsupplicant-1.2.8-old/configure 2007-01-10 02:18:33.000000000 +0100 ++++ xsupplicant-1.2.8-new/configure 2007-01-10 02:24:21.000000000 +0100 +@@ -4759,6 +4759,11 @@ + #ifndef __user + #define __user + #endif ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + + #include <$ac_header> +@@ -4823,6 +4828,11 @@ + #ifndef __user + #define __user + #endif ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + #include + int +diff -ruN xsupplicant-1.2.8-old/configure.in xsupplicant-1.2.8-new/configure.in +--- xsupplicant-1.2.8-old/configure.in 2007-01-10 02:18:33.000000000 +0100 ++++ xsupplicant-1.2.8-new/configure.in 2007-01-10 02:22:28.000000000 +0100 +@@ -119,6 +119,11 @@ + #ifndef __user + #define __user + #endif ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include ]) + + AC_MSG_CHECKING([iwlib version]) +@@ -127,6 +132,11 @@ + #ifndef __user + #define __user + #endif ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + #include ], + [iw_extract_event_stream(NULL, NULL, 0);], [AC_DEFINE(NEW_IWLIB) AC_MSG_RESULT([3 params])], [AC_MSG_RESULT([2 params])]) +diff -ruN xsupplicant-1.2.8-old/src/cardif/linux/cardif_linux_wext.c xsupplicant-1.2.8-new/src/cardif/linux/cardif_linux_wext.c +--- xsupplicant-1.2.8-old/src/cardif/linux/cardif_linux_wext.c 2006-10-08 05:42:53.000000000 +0200 ++++ xsupplicant-1.2.8-new/src/cardif/linux/cardif_linux_wext.c 2007-01-10 02:31:22.000000000 +0100 +@@ -204,6 +204,7 @@ + #include + #include + #include ++#include + #include + #include + #include -- 2.30.2