diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-07-22 02:59:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-07-22 02:59:14 +0000 |
commit | 26a6539a2ef6fbed4cfabb28d394850fea12fa8f (patch) | |
tree | 353d5b797a1f7e119231ffa726c0f9601b1a233f /tools/yaffs2/patches/100-compile.patch | |
parent | 4ad8aa543db84074775024164a6f3822e355ddae (diff) | |
download | mtk-20170518-26a6539a2ef6fbed4cfabb28d394850fea12fa8f.zip mtk-20170518-26a6539a2ef6fbed4cfabb28d394850fea12fa8f.tar.gz mtk-20170518-26a6539a2ef6fbed4cfabb28d394850fea12fa8f.tar.bz2 |
yaffs2: fix compilation on FreeBSD
SVN-Revision: 22345
Diffstat (limited to 'tools/yaffs2/patches/100-compile.patch')
-rw-r--r-- | tools/yaffs2/patches/100-compile.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/yaffs2/patches/100-compile.patch b/tools/yaffs2/patches/100-compile.patch index 154f389..2f83e1f 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 + |