From 3da94b1114d0a8a7e429b61c85cc8e98c1b1927e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 15 Sep 2017 13:30:40 +0200 Subject: swaplabel: fix --disable-libuuid compilation Signed-off-by: Karel Zak --- disk-utils/swaplabel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'disk-utils') diff --git a/disk-utils/swaplabel.c b/disk-utils/swaplabel.c index 7785bcebc..ccc226a02 100644 --- a/disk-utils/swaplabel.c +++ b/disk-utils/swaplabel.c @@ -51,7 +51,12 @@ static int print_info(blkid_probe pr) } /* Change the swap partition info */ +#ifdef HAVE_LIBUUID static int change_info(const char *devname, const char *label, const char *uuid) +#else +static int change_info(const char *devname, const char *label, + const char *uuid __attribute__((__unused__))) +#endif { int fd; -- cgit v1.2.3-55-g7522