24194345b9
harddisk in case the primary partition table was damaged.
22 lines
557 B
Text
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));
|