]> err.no Git - util-linux/commitdiff
build-sys: fix headers in mkswap and libblkid
authorKarel Zak <kzak@redhat.com>
Mon, 18 May 2009 13:59:55 +0000 (15:59 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 May 2009 08:06:15 +0000 (10:06 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c
shlibs/blkid/src/probe.c

index 4acc73b2305b47097f444cec026525a855e0d5cf..bb97210ec955c6797a291e5bc15c1568341c4108 100644 (file)
 #include "wholedisk.h"
 
 #ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
+# ifdef HAVE_UUID_UUID_H
+#  include <uuid/uuid.h>
+#else
+# include <uuid.h>
+# endif
 #endif
 
 static char * program_name = "mkswap";
index 38d42762f2726da784def72fdd000712be8721fe..b2b888d40655e3a6f68203061b1817660e68783d 100644 (file)
 #include <errno.h>
 #endif
 #include <stdint.h>
+#include <stdarg.h>
+
 #ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
+# ifdef HAVE_UUID_UUID_H
+#  include <uuid/uuid.h>
+#else
+# include <uuid.h>
+# endif
 #endif
-#include <stdarg.h>
 
 #include "blkdev.h"
 #include "blkidP.h"