summaryrefslogtreecommitdiff
path: root/sysutils/e2fsprogs/patches/patch-ab
blob: d379df92bcd35bbee28bdacd476b3784ef2ddbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$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 <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 */