$NetBSD: patch-ab,v 1.4 2016/08/09 21:46:07 jdolecek Exp $

DragonFly support

--- lib/ext2fs/getsize.c.orig	2014-08-03 05:26:22.000000000 +0900
+++ lib/ext2fs/getsize.c	2014-12-10 20:45:18.000000000 +0900
@@ -33,6 +33,9 @@
 #ifdef HAVE_SYS_DISKLABEL_H
 #include <sys/disklabel.h>
 #endif
+#ifdef __DragonFly__
+#include <sys/disklabel32.h>
+#endif
 #ifdef HAVE_SYS_DISK_H
 #include <sys/disk.h>
 #endif
@@ -198,7 +201,11 @@ errcode_t ext2fs_get_device_size2(const 
 #ifdef HAVE_SYS_DISKLABEL_H
 	{
 		int part;
+#ifdef __DragonFly__
+		struct disklabel32 lab;
+#else
 		struct disklabel lab;
+#endif
 		struct partition *pp;
 		char ch;
 
