From 5e9d2fa14895d2eacd9cb2a59da851847819002e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 26 Oct 2023 08:21:17 -0700 Subject: [PATCH] getconf: fix sense of #if conditional. Luckily this was obvious because it broke the macOS build. --- toys/posix/getconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/getconf.c b/toys/posix/getconf.c index af99d3fb..7c2e588f 100644 --- a/toys/posix/getconf.c +++ b/toys/posix/getconf.c @@ -106,7 +106,7 @@ static struct config sysconfs[] = { CONF(TZNAME_MAX), CONF(UIO_MAXIOV), /* bionic and glibc have these; macOS and musl don't. */ -#ifndef _SC_LEVEL1_ICACHE_SIZE +#ifdef _SC_LEVEL1_ICACHE_SIZE CONF(LEVEL1_ICACHE_SIZE), CONF(LEVEL1_ICACHE_ASSOC), CONF(LEVEL1_ICACHE_LINESIZE), CONF(LEVEL1_DCACHE_SIZE), CONF(LEVEL1_DCACHE_ASSOC), CONF(LEVEL1_DCACHE_LINESIZE), -- 2.39.2