block: don't declare find_root_dev with UBIFS_EXTROOT
[project/fstools.git] / block.c
diff --git a/block.c b/block.c
index c72a9df..705cf5d 100644 (file)
--- a/block.c
+++ b/block.c
@@ -935,7 +935,8 @@ static int find_block_ubi_RO(libubi_t libubi, char *name, char *part, int plen)
 
        return err;
 }
 
        return err;
 }
-#endif
+
+#else
 
 static int find_root_dev(char *buf, int len)
 {
 
 static int find_root_dev(char *buf, int len)
 {
@@ -966,6 +967,8 @@ static int find_root_dev(char *buf, int len)
        return -1;
 }
 
        return -1;
 }
 
+#endif
+
 static int test_fs_support(const char *name)
 {
        char line[128], *p;
 static int test_fs_support(const char *name)
 {
        char line[128], *p;