summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-04-22 17:41:50 +0000
committerderaadt <deraadt@openbsd.org>2001-04-22 17:41:50 +0000
commit73b37fe236f36970737d22332fa3e55a441db5e2 (patch)
tree527426693d182ad66f730b8df9e272ed8a3ba826
parentIn the verbiage for MNT_SOFTDEP add a reference to 'softdep' in (diff)
downloadwireguard-openbsd-73b37fe236f36970737d22332fa3e55a441db5e2.tar.xz
wireguard-openbsd-73b37fe236f36970737d22332fa3e55a441db5e2.zip
permit compilation without I586_CPU or I686_CPU; armin@wolfermann.org
-rw-r--r--sys/arch/i386/i386/procfs_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/procfs_machdep.c b/sys/arch/i386/i386/procfs_machdep.c
index 111b6e082c8..22e8e11abb2 100644
--- a/sys/arch/i386/i386/procfs_machdep.c
+++ b/sys/arch/i386/i386/procfs_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_machdep.c,v 1.1 2001/04/09 07:14:16 tholo Exp $ */
+/* $OpenBSD: procfs_machdep.c,v 1.2 2001/04/22 17:41:50 deraadt Exp $ */
/* $NetBSD: procfs_machdep.c,v 1.6 2001/02/21 21:39:59 jdolecek Exp $ */
/*
@@ -115,11 +115,12 @@ procfs_getcpuinfstr(char *buf, int *len)
if (left <= 0)
return 0;
-
+#if defined(I586_CPU) || defined(I686_CPU)
if (pentium_mhz != 0)
l = snprintf(p, left, "cpu MHz\t\t: %d\n",
pentium_mhz);
else
+#endif
l = snprintf(p, left, "cpu MHz\t\t: unknown\n");
left -= l;