--- mtd-utils-1.5.0.orig/include/mtd/jffs2-user.h	2012-05-07 09:19:39.000000000 +0200
+++ mtd-utils-1.5.0/include/mtd/jffs2-user.h	2014-03-30 15:49:26.000000000 +0200
@@ -9,8 +9,13 @@
 
 /* This file is blessed for inclusion by userspace */
 #include <linux/jffs2.h>
+#if defined(__APPLE__)
+#include "endian.h"
+#include "byteswap.h"
+#else
 #include <endian.h>
 #include <byteswap.h>
+#endif
 
 #undef cpu_to_je16
 #undef cpu_to_je32
