From 84a26f645c29fede0081d4b88a330fba6b8f9a8c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Feb 2009 15:21:55 +0100 Subject: [PATCH] lib: make open_device() optional in fsprobe.c Signed-off-by: Karel Zak --- lib/fsprobe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fsprobe.c b/lib/fsprobe.c index 5fecc649..98c03e88 100644 --- a/lib/fsprobe.c +++ b/lib/fsprobe.c @@ -14,6 +14,7 @@ #include "pathnames.h" #include "fsprobe.h" +#if defined(HAVE_BLKID_EVALUATE_SPEC) || defined(HAVE_LIBVOLUME_ID) /* ask kernel developers why we need such ugly open() method... */ static int open_device(const char *devname) @@ -34,6 +35,7 @@ open_device(const char *devname) return -1; } +#endif /* * Parses NAME=value, returns -1 on parse error, 0 success. The success is also -- 2.39.5