Skip to content
Snippets Groups Projects
Commit 26a6539a authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

yaffs2: fix compilation on FreeBSD

SVN-Revision: 22345
parent 4ad8aa54
No related branches found
No related tags found
No related merge requests found
...@@ -112,3 +112,14 @@ ...@@ -112,3 +112,14 @@
//printf("Processing directory %s into image file %s\n",argv[1],argv[2]); //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); error = write_object_header(1, YAFFS_OBJECT_TYPE_DIRECTORY, &stats, 1,"", -1, NULL);
if(error) 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment