projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: fix compile error with musl
[openwrt-github/.git]
/
package
/
system
/
mtd
/
src
/
mtd.c
diff --git
a/package/system/mtd/src/mtd.c
b/package/system/mtd/src/mtd.c
index 7b80193b44c63d2540337d4a1e417147aa5f8d7a..6dd6eea6a369824cd270b062cbcf251c54164363 100644
(file)
--- a/
package/system/mtd/src/mtd.c
+++ b/
package/system/mtd/src/mtd.c
@@
-21,6
+21,7
@@
* The code is based on the linux-mtd examples.
*/
+#define _GNU_SOURCE
#include <limits.h>
#include <unistd.h>
#include <stdlib.h>