packages/utils/fxload/patches/010-compile_fix.patch
florian 14c937af41 [package] update fxload to 2008-10-13 (#5465)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 13:02:20 +00:00

19 lines
325 B
Diff

--- a/ezusb.c
+++ b/ezusb.c
@@ -30,8 +30,14 @@
# include <sys/ioctl.h>
# include <linux/version.h>
-# include <linux/usb/ch9.h>
+typedef unsigned long kernel_ulong_t;
+
+#ifndef BITS_PER_LONG
+#define BITS_PER_LONG 32
+#endif
+
# include <linux/usbdevice_fs.h>
+# include <linux/usb/ch9.h>
# include "ezusb.h"