[source] mtd: fix endianness detection on musl
LEDE Commits
lede-commits at lists.infradead.org
Thu Oct 27 00:18:39 PDT 2016
stintel pushed a commit to source.git, branch master:
https://git.lede-project.org/dec29082e0d3d9aed4815e969641bd155b799b42
commit dec29082e0d3d9aed4815e969641bd155b799b42
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Fri Oct 21 17:32:03 2016 +0300
mtd: fix endianness detection on musl
Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
Acked-by: John Crispin <john at phrozen.org>
---
package/system/mtd/src/mtd.c | 1 +
package/system/mtd/src/seama.c | 1 +
2 files changed, 2 insertions(+)
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>
More information about the lede-commits
mailing list