summaryrefslogtreecommitdiff
path: root/package/mtd-utils/patches/patch-mkfs_jffs2_c
blob: 766e2204ac938f737a5c8b3ea94c4d3dd54657b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- mtd-utils-1.5.0.orig/mkfs.jffs2.c	2012-05-07 09:19:39.000000000 +0200
+++ mtd-utils-1.5.0/mkfs.jffs2.c	2014-03-30 15:49:26.000000000 +0200
@@ -70,7 +70,12 @@
 #include <sys/xattr.h>
 #include <sys/acl.h>
 #endif
+#if defined(__APPLE__)
+#include "endian.h"
+#include "byteswap.h"
+#else
 #include <byteswap.h>
+#endif
 #include <crc32.h>
 #include <inttypes.h>