Explorar o código

mtd: fix compile error with musl

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 40819
Felix Fietkau %!s(int64=11) %!d(string=hai) anos
pai
achega
962575f201
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      package/system/mtd/src/mtd.c

+ 1 - 0
package/system/mtd/src/mtd.c

@@ -21,6 +21,7 @@
  * The code is based on the linux-mtd examples.
  * The code is based on the linux-mtd examples.
  */
  */
 
 
+#define _GNU_SOURCE
 #include <limits.h>
 #include <limits.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdlib.h>