diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2016-10-21 17:32:03 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2016-10-27 01:50:42 +0300 |
commit | dec29082e0d3d9aed4815e969641bd155b799b42 (patch) | |
tree | f3bf6c6b4cac0fea49ea1757d39d62548026c89e /package/system/mtd/src/mtd.c | |
parent | 136319e72d14ed4f77e03db54c0c46dc85d685c3 (diff) | |
download | upstream-dec29082e0d3d9aed4815e969641bd155b799b42.tar.gz upstream-dec29082e0d3d9aed4815e969641bd155b799b42.tar.bz2 upstream-dec29082e0d3d9aed4815e969641bd155b799b42.zip |
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/system/mtd/src/mtd.c')
-rw-r--r-- | package/system/mtd/src/mtd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c index 822e466f47..91e169eb41 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> |