$NetBSD: patch-ab,v 1.5 2025/01/21 18:13:57 triaxx 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
@@ -37,6 +37,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
@@ -204,7 +207,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;
 
