110-openbsd-compat.patch 552 B

1234567891011121314
  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. +#if defined(__OpenBSD__)
  8. +#define loff_t off_t
  9. +#endif
  10. +
  11. /* File operations */
  12. int yaffs_ReadDataFromFile(yaffs_Object * obj, __u8 * buffer, loff_t offset,
  13. int nBytes);