From: Karel Zak Date: Wed, 18 Feb 2009 14:21:55 +0000 (+0100) Subject: lib: make open_device() optional in fsprobe.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84a26f645c29fede0081d4b88a330fba6b8f9a8c;p=util-linux lib: make open_device() optional in fsprobe.c Signed-off-by: Karel Zak --- 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