build: BSD compile fixes
[openwrt/staging/chunkeey.git] / tools / yaffs2 / patches / 110-openbsd-compat.patch
1 diff -Nur yaffs2_android.orig/yaffs2/yaffs_guts.h yaffs2_android/yaffs2/yaffs_guts.h
2 --- yaffs2_android.orig/yaffs2/yaffs_guts.h Sun Feb 15 16:23:50 2009
3 +++ yaffs2_android/yaffs2/yaffs_guts.h Tue Mar 5 15:45:21 2013
4 @@ -823,6 +823,10 @@
5 int yaffs_SetAttributes(yaffs_Object * obj, struct iattr *attr);
6 int yaffs_GetAttributes(yaffs_Object * obj, struct iattr *attr);
7
8 +#if defined(__OpenBSD__)
9 +#define loff_t off_t
10 +#endif
11 +
12 /* File operations */
13 int yaffs_ReadDataFromFile(yaffs_Object * obj, __u8 * buffer, loff_t offset,
14 int nBytes);