diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-06-03 17:05:42 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-06-03 17:05:42 +0000 |
commit | 76f893393835cbdf338dff890962c51837582c9a (patch) | |
tree | 34bd9c6472066aff39a0256161971a5ab578dd53 /distrib/special | |
parent | 32ce559d70818fde5df0f04bff70e1f414d8df1f (diff) |
Enable machdep.compatible on platforms that have it.
ok deraadt@
Diffstat (limited to 'distrib/special')
-rw-r--r-- | distrib/special/sysctl/sysctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/distrib/special/sysctl/sysctl.c b/distrib/special/sysctl/sysctl.c index 20da558efdf..3b498c45224 100644 --- a/distrib/special/sysctl/sysctl.c +++ b/distrib/special/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.12 2018/06/25 16:29:00 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.13 2021/06/03 17:05:41 kettenis Exp $ */ /* * Copyright (c) 2009 Theo de Raadt <deraadt@openbsd.org> @@ -30,6 +30,8 @@ #include <string.h> #include <unistd.h> +#include <machine/cpu.h> + #define SOIIKEY_LEN 16 struct var { @@ -55,6 +57,10 @@ struct var vars[] = { { CTL_HW, HW_DISKNAMES }}, { "hw.ncpufound", pint, 2, { CTL_HW, HW_NCPUFOUND }}, +#ifdef CPU_COMPATIBLE + { "machdep.compatible", pstring, 2, + { CTL_MACHDEP, CPU_COMPATIBLE }}, +#endif }; int nflag; |