From 4cd854b12243310cde4cf41e69b2fb02bb454a73 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 3 Jun 2021 17:05:41 +0000 Subject: [PATCH] Enable machdep.compatible on platforms that have it. ok deraadt@ --- distrib/special/sysctl/sysctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.20.1