From 5e8a7a882eb056f7fc02736f2e92547f269ee553 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 15 May 2024 16:07:05 -0400 Subject: Work around https://github.com/llvm/llvm-project/issues/88163 --- src/ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ctx.c') diff --git a/src/ctx.c b/src/ctx.c index 356adbc..11531df 100644 --- a/src/ctx.c +++ b/src/ctx.c @@ -3,6 +3,7 @@ #include "ctx.h" #include "alloc.h" +#include "bfstd.h" #include "color.h" #include "diag.h" #include "expr.h" @@ -22,7 +23,7 @@ /** Get the initial value for ctx->threads (-j). */ static int bfs_nproc(void) { - long nproc = sysconf(_SC_NPROCESSORS_ONLN); + long nproc = xsysconf(_SC_NPROCESSORS_ONLN); if (nproc < 1) { nproc = 1; -- cgit v1.2.3