mtd: fix compile error with musl
[openwrt.git] / package / system / mtd / src / mtd.c
index 7b80193..6dd6eea 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>