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 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;
 }
-#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;