summaryrefslogtreecommitdiff
path: root/ubi-utils/libubi_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/libubi_int.h')
-rw-r--r--ubi-utils/libubi_int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ubi-utils/libubi_int.h b/ubi-utils/libubi_int.h
index c3aa37a..86ce18a 100644
--- a/ubi-utils/libubi_int.h
+++ b/ubi-utils/libubi_int.h
@@ -36,6 +36,9 @@ extern "C" {
* directories to '/sys/class/ubi/'. For now libubi assumes old layout.
*/
+#ifndef SYSFS_ROOT
+#define SYSFS_ROOT "/sys"
+#endif
#define SYSFS_UBI "class/ubi"
#define SYSFS_CTRL "class/misc/ubi_ctrl/"