projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: fix endianness detection on musl
[openwrt/staging/chunkeey.git]
/
package
/
system
/
mtd
/
src
/
mtd.c
diff --git
a/package/system/mtd/src/mtd.c
b/package/system/mtd/src/mtd.c
index 822e466f470f8af3cc3bee7959cb56a5f7d168a7..91e169eb413114539c4c646b72a5b5516cee57bb 100644
(file)
--- 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>