$NetBSD$

--- lib/ext2fs/getsize.c.orig	2007-06-30 15:58:34 +0300
+++ lib/ext2fs/getsize.c
@@ -32,6 +32,9 @@
 #ifdef HAVE_SYS_DISKLABEL_H
 #include <sys/disklabel.h>
 #endif
+#ifdef __DragonFly__
+#include <sys/disklabel32.h>
+#endif
 #ifdef HAVE_SYS_DISK_H
 #ifdef HAVE_SYS_QUEUE_H
 #include <sys/queue.h> /* for LIST_HEAD */
@@ -154,7 +157,11 @@ errcode_t ext2fs_get_device_size(const c
 #endif
 #ifdef HAVE_SYS_DISKLABEL_H
 	int part;
+#ifdef __DragonFly__
+	struct disklabel32 lab;
+#else
 	struct disklabel lab;
+#endif
 	struct partition *pp;
 	char ch;
 #endif /* HAVE_SYS_DISKLABEL_H */
