add a patch to fix lcd4linux on linux 2.6.19 (see [6052]), add some touches to preven...
[openwrt/svn-archive/archive.git] / utils / lcd4linux / patches / 130-linux_2.6.19_wireless_h.patch
1 diff -ruN lcd4linux-0.10.0+cvs20051015-old/plugin_wireless.c lcd4linux-0.10.0+cvs20051015-new/plugin_wireless.c
2 --- lcd4linux-0.10.0+cvs20051015-old/plugin_wireless.c 2005-05-08 06:32:45.000000000 +0200
3 +++ lcd4linux-0.10.0+cvs20051015-new/plugin_wireless.c 2007-01-10 01:08:13.000000000 +0100
4 @@ -92,6 +92,11 @@
5
6 #include <sys/ioctl.h>
7 #include <net/if_arp.h>
8 +#include <linux/version.h>
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
10 +#include <linux/types.h>
11 +#include <linux/if.h>
12 +#endif
13 #include <linux/wireless.h>
14 #include <math.h>
15