blob: 2e5c856a06dc6b0f9eb48c052ce2d751258f5a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.2 2006/03/24 12:35:19 joerg 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__) || defined(__DragonFly__)
#include <errno.h>
#include <sys/disklabel.h>
#endif
@@ -52,7 +52,7 @@
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
struct disklabel dl;
if (ioctl(d->d_fd,DIOCGDINFO,&dl) == -1)
pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO",strerror(errno));
|