pkgsrc/sysutils/e2fsprogs/patches/patch-ab
jdolecek c79a9dab53 Update e2fsprogs to 1.43.1, using wip package for version 1.42.12 as base
Changes too numerous, see following page for details:
http://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.43.1

Compile-tested on NetBSD and Mac OS X
2016-08-09 21:46:06 +00:00

28 lines
640 B
Text

$NetBSD: patch-ab,v 1.4 2016/08/09 21:46:07 jdolecek 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
@@ -33,6 +33,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
@@ -198,7 +201,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;