Przeglądaj źródła

mtd: fix endianness detection on musl

Signed-off-by: Stijn Tintel <[email protected]>
Acked-by: John Crispin <[email protected]>
Stijn Tintel 9 lat temu
rodzic
commit
dec29082e0
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1 0
      package/system/mtd/src/mtd.c
  2. 1 0
      package/system/mtd/src/seama.c

+ 1 - 0
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>

+ 1 - 0
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>