pkgsrc/sysutils/gpart/patches/patch-aa
veego 24194345b9 Gpart is a small tool which tries to guess what partitions are on a PC type
harddisk in case the primary partition table was damaged.
2000-09-01 16:10:28 +00:00

22 lines
557 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $
--- src/disku.c Sun May 14 14:04:23 2000
+++ src/disku.c Sun Jul 16 10:58:08 2000
@@ -25,7 +25,7 @@
#include <linux/hdreg.h>
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <errno.h>
#include <sys/disklabel.h>
#endif
@@ -52,7 +52,7 @@
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
struct disklabel dl;
if (ioctl(d->d_fd,DIOCGDINFO,&dl) == -1)
pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO",strerror(errno));