summaryrefslogtreecommitdiff
path: root/package/mtd/mtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd/mtd.c')
-rw-r--r--package/mtd/mtd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/mtd/mtd.c b/package/mtd/mtd.c
index 69ef064960..e559864945 100644
--- a/package/mtd/mtd.c
+++ b/package/mtd/mtd.c
@@ -40,7 +40,11 @@
#include <sys/reboot.h>
#include <string.h>
+#ifdef LINUX_24
#include <linux/mtd/mtd.h>
+#else
+#include <mtd/mtd-user.h>
+#endif
#define TRX_MAGIC 0x30524448 /* "HDR0" */
#define BUFSIZE (10 * 1024)