summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2016-10-21 17:32:03 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2016-10-27 01:50:42 +0300
commitdec29082e0d3d9aed4815e969641bd155b799b42 (patch)
treef3bf6c6b4cac0fea49ea1757d39d62548026c89e /package
parent136319e72d14ed4f77e03db54c0c46dc85d685c3 (diff)
downloadmtk-20170518-dec29082e0d3d9aed4815e969641bd155b799b42.zip
mtk-20170518-dec29082e0d3d9aed4815e969641bd155b799b42.tar.gz
mtk-20170518-dec29082e0d3d9aed4815e969641bd155b799b42.tar.bz2
mtd: fix endianness detection on musl
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package')
-rw-r--r--package/system/mtd/src/mtd.c1
-rw-r--r--package/system/mtd/src/seama.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c
index 822e466..91e169e 100644
--- a/package/system/mtd/src/mtd.c
+++ b/package/system/mtd/src/mtd.c
@@ -23,6 +23,7 @@
#define _GNU_SOURCE
#include <byteswap.h>
+#include <endian.h>
#include <limits.h>
#include <unistd.h>
#include <stdlib.h>
diff --git a/package/system/mtd/src/seama.c b/package/system/mtd/src/seama.c
index bcda321..1f66adc 100644
--- a/package/system/mtd/src/seama.c
+++ b/package/system/mtd/src/seama.c
@@ -22,6 +22,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <endian.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>