packages/utils/lcd4linux/patches/130-linux_2.6.19_wireless_h.patch
olli 5b28541f6b lcd4linux: fix compile (#1981)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7886 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-07 12:58:47 +00:00

17 lines
571 B
Diff

Index: lcd4linux-0.10.0+cvs20051015.orig/plugin_wireless.c
===================================================================
--- lcd4linux-0.10.0+cvs20051015.orig.orig/plugin_wireless.c 2007-07-07 14:02:55.000000000 +0200
+++ lcd4linux-0.10.0+cvs20051015.orig/plugin_wireless.c 2007-07-07 14:02:57.000000000 +0200
@@ -92,6 +92,11 @@
#include <sys/ioctl.h>
#include <net/if_arp.h>
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#include <linux/types.h>
+#include <linux/if.h>
+#endif
#include <linux/wireless.h>
#include <math.h>