--- 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>
