]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swaplabel: fix --disable-libuuid compilation
authorKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 11:30:40 +0000 (13:30 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Sep 2017 12:24:05 +0000 (14:24 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/swaplabel.c

index 233f027d15413e3b52db81b3538d62a11b2e8cae..27aa72b69a124dae8bdcadfa8d6a497ea59efecb 100644 (file)
@@ -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;