summaryrefslogtreecommitdiff
path: root/lib/libmtd_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libmtd_int.h')
-rw-r--r--lib/libmtd_int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libmtd_int.h b/lib/libmtd_int.h
index 8ff33ad..db2f1cf 100644
--- a/lib/libmtd_int.h
+++ b/lib/libmtd_int.h
@@ -30,6 +30,10 @@ extern "C" {
#define PROGRAM_NAME "libmtd"
+#ifndef SYSFS_ROOT
+#define SYSFS_ROOT "/sys"
+#endif
+
#define SYSFS_MTD "class/mtd"
#define MTD_NAME_PATT "mtd%d"
#define MTD_DEV "dev"