From 63bc5ea52afead9261435ba346bfaa64dd8e48ba Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Tue, 9 Jan 2007 22:39:43 +0000 Subject: [PATCH] add a patch to fix kismet on 2.6.19 (closes: #1139) does not include the required headers anymore SVN-Revision: 6052 --- .../patches/130-linux_2.6.19_wireless_h.patch | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 net/kismet/patches/130-linux_2.6.19_wireless_h.patch diff --git a/net/kismet/patches/130-linux_2.6.19_wireless_h.patch b/net/kismet/patches/130-linux_2.6.19_wireless_h.patch new file mode 100644 index 000000000..0464898d8 --- /dev/null +++ b/net/kismet/patches/130-linux_2.6.19_wireless_h.patch @@ -0,0 +1,99 @@ +diff -ruN kismet-2006-04-R1-old/configure kismet-2006-04-R1-new/configure +--- kismet-2006-04-R1-old/configure 2006-01-04 16:53:37.000000000 +0100 ++++ kismet-2006-04-R1-new/configure 2007-01-09 23:04:03.000000000 +0100 +@@ -6354,6 +6354,11 @@ + #include + + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#include ++#endif + #include + _ACEOF + rm -f conftest.$ac_objext +@@ -6417,6 +6422,11 @@ + #include + #include + #include ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + + int +diff -ruN kismet-2006-04-R1-old/configure.in kismet-2006-04-R1-new/configure.in +--- kismet-2006-04-R1-old/configure.in 2006-01-04 16:53:37.000000000 +0100 ++++ kismet-2006-04-R1-new/configure.in 2007-01-09 23:01:41.000000000 +0100 +@@ -389,6 +389,11 @@ + [ + #include + #include ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + ]) + else +@@ -403,6 +408,11 @@ + #include + #include + #include ++ #include ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ #include ++ #include ++ #endif + #include + ]], [[ + struct iwreq wrq; +diff -ruN kismet-2006-04-R1-old/ifcontrol.h kismet-2006-04-R1-new/ifcontrol.h +--- kismet-2006-04-R1-old/ifcontrol.h 2004-08-09 06:36:01.000000000 +0200 ++++ kismet-2006-04-R1-new/ifcontrol.h 2007-01-09 23:01:03.000000000 +0100 +@@ -42,6 +42,11 @@ + typedef unsigned int u32; + typedef unsigned long u64; + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#include ++#endif + #include + #else + #include +diff -ruN kismet-2006-04-R1-old/iwcontrol.h kismet-2006-04-R1-new/iwcontrol.h +--- kismet-2006-04-R1-old/iwcontrol.h 2006-03-15 09:09:26.000000000 +0100 ++++ kismet-2006-04-R1-new/iwcontrol.h 2007-01-09 22:58:50.000000000 +0100 +@@ -35,6 +35,11 @@ + #include + + #ifdef HAVE_LINUX_WIRELESS ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#include ++#endif + #include + #else + #include +diff -ruN kismet-2006-04-R1-old/pcapsource.cc kismet-2006-04-R1-new/pcapsource.cc +--- kismet-2006-04-R1-old/pcapsource.cc 2007-01-09 22:34:55.000000000 +0100 ++++ kismet-2006-04-R1-new/pcapsource.cc 2007-01-09 23:01:11.000000000 +0100 +@@ -35,6 +35,11 @@ + typedef unsigned int u32; + typedef unsigned long u64; + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#include ++#endif + #include + #endif + -- 2.30.2