$NetBSD: patch-ab,v 1.3 2008/09/21 16:16:06 joerg Exp $ --- 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 #endif +#ifdef __DragonFly__ +#include +#endif #ifdef HAVE_SYS_DISK_H #ifdef HAVE_SYS_QUEUE_H #include /* 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 */