mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
1f77bfff96
following patch allows to build images for Qemu ARM on OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64. Mostly small pieces of code changes to get things right on the specific platform. Updated the README to describe better, which tools on the host are required. Added some kind of prepare scripts to install needed tools on BSD via packages. Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de> SVN-Revision: 35900
15 lines
552 B
Diff
15 lines
552 B
Diff
diff -Nur yaffs2_android.orig/yaffs2/yaffs_guts.h yaffs2_android/yaffs2/yaffs_guts.h
|
|
--- yaffs2_android.orig/yaffs2/yaffs_guts.h Sun Feb 15 16:23:50 2009
|
|
+++ yaffs2_android/yaffs2/yaffs_guts.h Tue Mar 5 15:45:21 2013
|
|
@@ -823,6 +823,10 @@
|
|
int yaffs_SetAttributes(yaffs_Object * obj, struct iattr *attr);
|
|
int yaffs_GetAttributes(yaffs_Object * obj, struct iattr *attr);
|
|
|
|
+#if defined(__OpenBSD__)
|
|
+#define loff_t off_t
|
|
+#endif
|
|
+
|
|
/* File operations */
|
|
int yaffs_ReadDataFromFile(yaffs_Object * obj, __u8 * buffer, loff_t offset,
|
|
int nBytes);
|