diff -Naur dosfstools-3.0.24.orig/src/boot.c dosfstools-3.0.24/src/boot.c
--- dosfstools-3.0.24.orig/src/boot.c	2013-11-23 09:34:03.000000000 +0000
+++ dosfstools-3.0.24/src/boot.c	2014-01-04 23:20:18.000000000 +0000
@@ -36,6 +36,8 @@
 #include "io.h"
 #include "boot.h"
 #include "check.h"
+#include "endian-compat.h"
+
 
 #define ROUND_TO_MULTIPLE(n,m) ((n) && (m) ? (n)+(m)-1-((n)-1)%(m) : 0)
     /* don't divide by zero */
diff -Naur dosfstools-3.0.24.orig/src/endian-compat.h dosfstools-3.0.24/src/endian-compat.h
--- dosfstools-3.0.24.orig/src/endian-compat.h	1970-01-01 00:00:00.000000000 +0000
+++ dosfstools-3.0.24/src/endian-compat.h	2014-01-04 23:15:42.000000000 +0000
@@ -0,0 +1,9 @@
+#ifndef __ENDIAN_COMPAT_H__
+#define __ENDIAN_COMPAT_H__
+
+  #define htole16(x) (x)
+  #define htole32(x) (x)
+  #define le32toh(x) (x)
+  #define le16toh(x) (x)
+
+#endif
diff -Naur dosfstools-3.0.24.orig/src/fat.c dosfstools-3.0.24/src/fat.c
--- dosfstools-3.0.24.orig/src/fat.c	2013-07-19 05:03:32.000000000 +0000
+++ dosfstools-3.0.24/src/fat.c	2014-01-04 23:20:54.000000000 +0000
@@ -34,6 +34,7 @@
 #include "io.h"
 #include "check.h"
 #include "fat.h"
+#include "endian-compat.h"
 
 /**
  * Fetch the FAT entry for a specified cluster.
diff -Naur dosfstools-3.0.24.orig/src/check.c dosfstools-3.0.24/src/check.c
--- dosfstools-3.0.24.orig/src/check.c	2013-07-19 05:03:32.000000000 +0000
+++ dosfstools-3.0.24/src/check.c	2014-01-04 23:20:33.000000000 +0000
@@ -37,6 +37,7 @@
 #include "file.h"
 #include "lfn.h"
 #include "check.h"
+#include "endian-compat.h"
 
 static DOS_FILE *root;
 
diff -Naur dosfstools-3.0.24.orig/src/lfn.c dosfstools-3.0.24/src/lfn.c
--- dosfstools-3.0.24.orig/src/lfn.c	2013-07-19 05:03:32.000000000 +0000
+++ dosfstools-3.0.24/src/lfn.c	2014-01-04 23:21:21.000000000 +0000
@@ -31,6 +31,7 @@
 #include "fsck.fat.h"
 #include "lfn.h"
 #include "file.h"
+#include "endian-compat.h"
 
 typedef struct {
     __u8 id;			/* sequence number for slot */
diff -Naur dosfstools-3.0.24.orig/src/mkfs.fat.c dosfstools-3.0.24/src/mkfs.fat.c
--- dosfstools-3.0.24.orig/src/mkfs.fat.c	2013-10-14 22:15:39.000000000 +0000
+++ dosfstools-3.0.24/src/mkfs.fat.c	2014-01-04 23:18:35.000000000 +0000
@@ -65,6 +65,7 @@
 #include <errno.h>
 #include <ctype.h>
 #include <endian.h>
+#include "endian-compat.h"
 
 #include <asm/types.h>
 
