summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorMatthias Koenig2007-05-07 10:56:50 +0200
committerKarel Zak2007-05-16 23:55:23 +0200
commit766dd75716dbd76ad338d8863ff25ed934a4a0e3 (patch)
tree10411959f27801ca9bec8cd551632ec3610ac847 /disk-utils
parentsys-utils: fix man page headers (diff)
downloadkernel-qcow2-util-linux-766dd75716dbd76ad338d8863ff25ed934a4a0e3.tar.gz
kernel-qcow2-util-linux-766dd75716dbd76ad338d8863ff25ed934a4a0e3.tar.xz
kernel-qcow2-util-linux-766dd75716dbd76ad338d8863ff25ed934a4a0e3.zip
disk-utils: fix libuuid usage in mkswap
Fix libuuid usage in mkswap. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/mkswap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index 970641010..8cafd8f67 100644
--- a/disk-utils/mkswap.c
+++ b/disk-utils/mkswap.c
@@ -50,7 +50,7 @@
#include "xstrncpy.h"
#include "nls.h"
-#ifdef HAVE_UUID_UUID_H
+#ifdef HAVE_LIBUUID
#include <uuid/uuid.h>
#endif
@@ -240,7 +240,7 @@ write_uuid_and_label(char *uuid, char *volume_name) {
printf("LABEL=%s, ", h->volume_name);
else
printf(_("no label, "));
-#ifdef HAVE_UUID_UUID_H
+#ifdef HAVE_LIBUUID
if (uuid) {
char uuid_string[37];
uuid_unparse(uuid, uuid_string);
@@ -521,7 +521,7 @@ main(int argc, char ** argv) {
char *pp;
char *opt_label = NULL;
char *uuid = NULL;
-#ifdef HAVE_UUID_UUID_H
+#ifdef HAVE_LIBUUID
uuid_t uuid_dat;
#endif
@@ -577,7 +577,7 @@ main(int argc, char ** argv) {
usage();
}
-#ifdef HAVE_UUID_UUID_H
+#ifdef HAVE_LIBUUID
uuid_generate(uuid_dat);
uuid = uuid_dat;
#endif