summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/mkswap.c')
-rw-r--r--disk-utils/mkswap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index 5c2869772..ae5e58937 100644
--- a/disk-utils/mkswap.c
+++ b/disk-utils/mkswap.c
@@ -389,8 +389,9 @@ wipe_device(int fd, const char *devname, int force, int is_blkdev)
char *type = NULL;
int whole = 0;
int zap = 1;
+#ifdef HAVE_LIBBLKID
blkid_probe pr = NULL;
-
+#endif
if (!force) {
if (lseek(fd, 0, SEEK_SET) != 0)
errx(EXIT_FAILURE, _("unable to rewind swap-device"));