From a5c792b26698359ee21f8101b417fab7d8e082fb Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 5 Jan 2007 22:01:39 +0000 Subject: [PATCH] Fix compilation with >=2.6.19 kernels (#1136) SVN-Revision: 6003 --- net/aircrack-ng/patches/100-net_if.patch | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 net/aircrack-ng/patches/100-net_if.patch diff --git a/net/aircrack-ng/patches/100-net_if.patch b/net/aircrack-ng/patches/100-net_if.patch new file mode 100644 index 000000000..3856cbfcf --- /dev/null +++ b/net/aircrack-ng/patches/100-net_if.patch @@ -0,0 +1,28 @@ +diff -urN aircrack-ng-0.6.2/src/aireplay-ng.c aircrack-ng-0.6.2.new/src/aireplay-ng.c +--- aircrack-ng-0.6.2/src/aireplay-ng.c 2006-09-24 20:28:42.000000000 +0200 ++++ aircrack-ng-0.6.2.new/src/aireplay-ng.c 2007-01-05 22:54:08.000000000 +0100 +@@ -29,6 +29,10 @@ + #include + #include + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#endif + #include + #include + #include +diff -urN aircrack-ng-0.6.2/src/airodump-ng.c aircrack-ng-0.6.2.new/src/airodump-ng.c +--- aircrack-ng-0.6.2/src/airodump-ng.c 2006-09-09 16:38:26.000000000 +0200 ++++ aircrack-ng-0.6.2.new/src/airodump-ng.c 2007-01-05 22:55:00.000000000 +0100 +@@ -25,6 +25,10 @@ + #include + #include + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++#include ++#endif + #include + #include + #include -- 2.30.2