mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
27 lines
642 B
Plaintext
27 lines
642 B
Plaintext
$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 */
|