block: don't declare find_root_dev with UBIFS_EXTROOT
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 25 Feb 2015 18:50:40 +0000 (19:50 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 25 Feb 2015 18:50:59 +0000 (19:50 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
block.c

diff --git a/block.c b/block.c
index c72a9df334ad04b325f8f6e20274172025fffaa0..705cf5d047d12235f21e2536664b1263c18a1837 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;
 }
-#endif
+
+#else
 
 static int find_root_dev(char *buf, int len)
 {
@@ -966,6 +967,8 @@ static int find_root_dev(char *buf, int len)
        return -1;
 }
 
+#endif
+
 static int test_fs_support(const char *name)
 {
        char line[128], *p;