aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/134-freebsd_loff_t.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-10-01 16:39:08 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-10-01 16:39:08 +0000
commit5dab71a4026a43ee90f05111d5c49734e3d16015 (patch)
treeb7ae9cc90cf6977f5b575c5e45f4d3a57889ebf6 /tools/mtd-utils/patches/134-freebsd_loff_t.patch
parent17531e4aa7ab3673cd2d737a09add82238764522 (diff)
downloadupstream-5dab71a4026a43ee90f05111d5c49734e3d16015.tar.gz
upstream-5dab71a4026a43ee90f05111d5c49734e3d16015.tar.bz2
upstream-5dab71a4026a43ee90f05111d5c49734e3d16015.zip
tools/mtd-utils: update to mtd-utils-20101001, fix FreeBSD (and hopefully Darwin) build issues.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23169 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mtd-utils/patches/134-freebsd_loff_t.patch')
-rw-r--r--tools/mtd-utils/patches/134-freebsd_loff_t.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/mtd-utils/patches/134-freebsd_loff_t.patch b/tools/mtd-utils/patches/134-freebsd_loff_t.patch
new file mode 100644
index 0000000000..805e5ff027
--- /dev/null
+++ b/tools/mtd-utils/patches/134-freebsd_loff_t.patch
@@ -0,0 +1,13 @@
+--- a/include/mtd/mtd-abi.h
++++ b/include/mtd/mtd-abi.h
+@@ -98,8 +98,8 @@
+ #define MEMGETREGIONINFO _IOWR('M', 8, struct region_info_user)
+ #define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo)
+ #define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo)
+-#define MEMGETBADBLOCK _IOW('M', 11, __kernel_loff_t)
+-#define MEMSETBADBLOCK _IOW('M', 12, __kernel_loff_t)
++#define MEMGETBADBLOCK _IOW('M', 11, loff_t)
++#define MEMSETBADBLOCK _IOW('M', 12, loff_t)
+ #define OTPSELECT _IOR('M', 13, int)
+ #define OTPGETREGIONCOUNT _IOW('M', 14, int)
+ #define OTPGETREGIONINFO _IOW('M', 15, struct otp_info)