]> git.wh0rd.org - dump.git/blobdiff - compat/lib/bylabel.c
Be sure the di_size in a map header has the correct value.
[dump.git] / compat / lib / bylabel.c
index 7f710ed7655e7196cef4a528cb5c92a242dc48e9..5a40a70e6eb5af34dfbe3d388a99904a38c80df2 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <config.h>
 #include <compatlfs.h>
+#include <sys/types.h>
 #include <stdio.h>
 #include <sys/param.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <malloc.h>
+#include <sys/cdefs.h>
 #include "bylabel.h"
 
+#ifndef HAVE_BLKID
+
 #define PROC_PARTITIONS "/proc/partitions"
 #define DEVLABELDIR    "/dev"
 
@@ -253,3 +257,5 @@ get_device_label(const char * spec) {
        }
        return NULL;
 }
+
+#endif /* !HAVE_BLKID */