aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-02-06 17:15:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-02-06 17:15:40 +0000
commit486d54bf052f433a1c2f71e08aafa75ec0a23728 (patch)
treefe269f1842b74f67681e60058926e2459f4773e7 /package/mtd/src
parent620843b2eef4c20d4fd63ba5fd3d30392702c5c0 (diff)
downloadupstream-486d54bf052f433a1c2f71e08aafa75ec0a23728.tar.gz
upstream-486d54bf052f433a1c2f71e08aafa75ec0a23728.tar.bz2
upstream-486d54bf052f433a1c2f71e08aafa75ec0a23728.zip
mtd: define MTDREFRESH if not defined (external kernel)
SVN-Revision: 30340
Diffstat (limited to 'package/mtd/src')
-rw-r--r--package/mtd/src/mtd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 5fa260b91a..a7d4c1b857 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -45,6 +45,10 @@
#include "fis.h"
#include "mtd.h"
+#ifndef MTDREFRESH
+#define MTDREFRESH _IO('M', 50)
+#endif
+
#define MAX_ARGS 8
#define JFFS2_DEFAULT_DIR "" /* directory name without /, empty means root dir */