mtd: fix compile error with musl
authorFelix Fietkau <nbd@openwrt.org>
Wed, 21 May 2014 14:09:53 +0000 (14:09 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 21 May 2014 14:09:53 +0000 (14:09 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40819

package/system/mtd/src/mtd.c

index 7b80193b44c63d2540337d4a1e417147aa5f8d7a..6dd6eea6a369824cd270b062cbcf251c54164363 100644 (file)
@@ -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>