summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-29 02:40:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-29 02:40:41 +0000
commit023685defa1afec18bef0ad9c73dfd5aea854b72 (patch)
treeb4af306fac06619ed984abe995901b28337fcb37
parent147dd35e1d77fd37a7f1334adb2d6c0144c81e74 (diff)
fix case we have no CPU_BIOS* defined
-rw-r--r--sbin/sysctl/sysctl.c6
-rw-r--r--usr.sbin/sysctl/sysctl.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 2e1dae8cdd2..31d20e682b4 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.23 1997/08/28 19:39:20 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.23 1997/08/28 19:39:20 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $";
#endif
#endif /* not lint */
@@ -495,6 +495,7 @@ parse(string, flags)
(void)printf("0x%x\n", dev);
return;
}
+#ifdef CPU_BIOSGEOMETRY
if (special & BIOSGEO) {
int geo = *(int *)buf;
@@ -504,6 +505,7 @@ parse(string, flags)
BIOSNSECTS(geo), BIOSNHEADS(geo));
return;
}
+#endif
if (special & BIOSDEV) {
int dev = *(int*)buf;
diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c
index 2e1dae8cdd2..31d20e682b4 100644
--- a/usr.sbin/sysctl/sysctl.c
+++ b/usr.sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.23 1997/08/28 19:39:20 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.23 1997/08/28 19:39:20 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $";
#endif
#endif /* not lint */
@@ -495,6 +495,7 @@ parse(string, flags)
(void)printf("0x%x\n", dev);
return;
}
+#ifdef CPU_BIOSGEOMETRY
if (special & BIOSGEO) {
int geo = *(int *)buf;
@@ -504,6 +505,7 @@ parse(string, flags)
BIOSNSECTS(geo), BIOSNHEADS(geo));
return;
}
+#endif
if (special & BIOSDEV) {
int dev = *(int*)buf;