Merge pull request #1385 from dangowrt/fix-f2fs-tools-build-with-musl
authorLuka Perkov <luka.perkov@sartura.hr>
Tue, 16 Jun 2015 13:54:53 +0000 (15:54 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Tue, 16 Jun 2015 13:54:53 +0000 (15:54 +0200)
f2fs-tools: fix build with musl

utils/f2fs-tools/patches/010-include-byteswap-h.patch [new file with mode: 0644]

diff --git a/utils/f2fs-tools/patches/010-include-byteswap-h.patch b/utils/f2fs-tools/patches/010-include-byteswap-h.patch
new file mode 100644 (file)
index 0000000..b8c9ff3
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/include/f2fs_fs.h
++++ b/include/f2fs_fs.h
+@@ -12,6 +12,7 @@
+ #include <inttypes.h>
+ #include <linux/types.h>
+ #include <sys/types.h>
++#include <byteswap.h>
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>