summaryrefslogtreecommitdiff
path: root/package/mtd-utils/patches/patch-include_mtd_jffs2-user_h
blob: 1373b66f2132babd273e7722f11c3f126e8df2ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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