summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorKarel Zak2017-09-15 13:30:40 +0200
committerKarel Zak2017-09-15 13:30:40 +0200
commit3da94b1114d0a8a7e429b61c85cc8e98c1b1927e (patch)
tree3bc2c5bb7a74e89ef957da76ce6c4154079d2a3f /disk-utils
parentmisc: cleanup UUID_STR_LEN definitions (diff)
downloadkernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.tar.gz
kernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.tar.xz
kernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.zip
swaplabel: fix --disable-libuuid compilation
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/swaplabel.c5
1 files changed, 5 insertions, 0 deletions
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;