mtd: fix endianness detection on musl
[openwrt/staging/chunkeey.git] / package / system / mtd / src / mtd.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>