summaryrefslogtreecommitdiff
path: root/tools/yaffs2/patches
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-22 02:59:14 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-22 02:59:14 +0000
commit674ab4a82160372126a79540d7fd70fcd9f56ce1 (patch)
treed168c74ac4fb2db81be6689b2ae9fe664727d2f1 /tools/yaffs2/patches
parentff696e3da940e3ef549d29e1010ec358e5f2275b (diff)
[tools] yaffs2: fix compilation on FreeBSD
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22345 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/yaffs2/patches')
-rw-r--r--tools/yaffs2/patches/100-compile.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/yaffs2/patches/100-compile.patch b/tools/yaffs2/patches/100-compile.patch
index 154f3895b7..2f83e1fff2 100644
--- a/tools/yaffs2/patches/100-compile.patch
+++ b/tools/yaffs2/patches/100-compile.patch
@@ -112,3 +112,14 @@
//printf("Processing directory %s into image file %s\n",argv[1],argv[2]);
error = write_object_header(1, YAFFS_OBJECT_TYPE_DIRECTORY, &stats, 1,"", -1, NULL);
if(error)
+--- a/yaffs2/devextras.h
++++ b/yaffs2/devextras.h
+@@ -37,7 +37,7 @@ typedef unsigned char __u8;
+ typedef unsigned short __u16;
+ typedef unsigned __u32;
+
+-#if defined(__APPLE__)
++#if defined(__APPLE__) || defined(__FreeBSD__)
+ typedef long long loff_t;
+ #endif
+