Signed-off-by: Karel Zak <kzak@redhat.com>
#include <sys/ioctl.h>
#include <linux/blkpg.h>
+#include <stdint.h>
#ifndef BLKPG_ADD_PARTITION
# define BLKPG_ADD_PARTITION 1
return 0;
}
+#ifndef HAVE_LIBBLKID
+int fdisk_do_wipe(struct fdisk_context *cxt __attribute__((__unused__)))
+{
+ return 0;
+}
+#else
int fdisk_do_wipe(struct fdisk_context *cxt)
{
-#ifdef HAVE_LIBBLKID
struct list_head *p;
blkid_probe pr;
int rc;
}
blkid_free_probe(pr);
-#endif
return 0;
}
+#endif
/*
*
* Returns: 0 if nothing found, < 0 on error, 1 if found a signature
*/
+#ifndef HAVE_LIBBLKID
+int fdisk_check_collisions(struct fdisk_context *cxt __attribute__((__unused__)))
+{
+ return 0;
+}
+#else
int fdisk_check_collisions(struct fdisk_context *cxt)
{
-#ifdef HAVE_LIBBLKID
int rc = 0;
blkid_probe pr;
blkid_free_probe(pr);
return rc;
-#else
- return 0;
-#endif
}
-
+#endif