summaryrefslogtreecommitdiff
path: root/package/system
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-21 14:09:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-21 14:09:53 +0000
commit962575f201db7723bbcbdbbf7a82203e0351022d (patch)
tree668f7c6ba2c55c778b9fb042f6d598c92e2b5e21 /package/system
parenta1038db845f373ede1e335a05a43809893403da4 (diff)
downloadmtk-20170518-962575f201db7723bbcbdbbf7a82203e0351022d.zip
mtk-20170518-962575f201db7723bbcbdbbf7a82203e0351022d.tar.gz
mtk-20170518-962575f201db7723bbcbdbbf7a82203e0351022d.tar.bz2
mtd: fix compile error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40819
Diffstat (limited to 'package/system')
-rw-r--r--package/system/mtd/src/mtd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c
index 7b80193..6dd6eea 100644
--- 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>