Fix compilation with >=2.6.19 kernels (#1136)
[openwrt/svn-archive/archive.git] / net / aircrack-ng / patches / 100-net_if.patch
1 diff -urN aircrack-ng-0.6.2/src/aireplay-ng.c aircrack-ng-0.6.2.new/src/aireplay-ng.c
2 --- aircrack-ng-0.6.2/src/aireplay-ng.c 2006-09-24 20:28:42.000000000 +0200
3 +++ aircrack-ng-0.6.2.new/src/aireplay-ng.c 2007-01-05 22:54:08.000000000 +0100
4 @@ -29,6 +29,10 @@
5 #include <sys/wait.h>
6 #include <sys/time.h>
7
8 +#include <linux/version.h>
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
10 +#include <net/if.h>
11 +#endif
12 #include <netpacket/packet.h>
13 #include <linux/if_ether.h>
14 #include <linux/wireless.h>
15 diff -urN aircrack-ng-0.6.2/src/airodump-ng.c aircrack-ng-0.6.2.new/src/airodump-ng.c
16 --- aircrack-ng-0.6.2/src/airodump-ng.c 2006-09-09 16:38:26.000000000 +0200
17 +++ aircrack-ng-0.6.2.new/src/airodump-ng.c 2007-01-05 22:55:00.000000000 +0100
18 @@ -25,6 +25,10 @@
19 #include <sys/wait.h>
20 #include <sys/time.h>
21
22 +#include <linux/version.h>
23 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
24 +#include <net/if.h>
25 +#endif
26 #include <netpacket/packet.h>
27 #include <linux/if_ether.h>
28 #include <linux/wireless.h>