mtd: fix endianness detection on musl
authorStijn Tintel <stijn@linux-ipv6.be>
Fri, 21 Oct 2016 14:32:03 +0000 (17:32 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 26 Oct 2016 22:50:42 +0000 (01:50 +0300)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
package/system/mtd/src/mtd.c
package/system/mtd/src/seama.c

index 822e466f470f8af3cc3bee7959cb56a5f7d168a7..91e169eb413114539c4c646b72a5b5516cee57bb 100644 (file)
@@ -23,6 +23,7 @@
 
 #define _GNU_SOURCE
 #include <byteswap.h>
+#include <endian.h>
 #include <limits.h>
 #include <unistd.h>
 #include <stdlib.h>
index bcda321918d03a772ee6a420501aa899af0ca300..1f66adc439b7dadf36b050287c8af7d3e8292986 100644 (file)
@@ -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>