From 76f893393835cbdf338dff890962c51837582c9a Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 3 Jun 2021 17:05:42 +0000 Subject: Enable machdep.compatible on platforms that have it. ok deraadt@ --- distrib/special/sysctl/sysctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'distrib/special') 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 @@ -30,6 +30,8 @@ #include #include +#include + #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; -- cgit v1.2.3