From 466e0b5f8e37f5ecd3148d6e76e43f8d15f4886b Mon Sep 17 00:00:00 2001 From: xsren <285808407@qq.com> Date: Fri, 13 Sep 2024 07:19:11 +0800 Subject: [PATCH] build on mac --- source/os/src/osSysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/os/src/osSysinfo.c b/source/os/src/osSysinfo.c index f9c4f081ff..36b1d7b60d 100644 --- a/source/os/src/osSysinfo.c +++ b/source/os/src/osSysinfo.c @@ -599,7 +599,7 @@ int32_t taosGetCpuCores(float *numOfCores, bool physical) { if(*numOfCores <= 0) { return TAOS_SYSTEM_ERROR(errno); } - return; + return 0; #else if (physical) { *numOfCores = sysconf(_SC_NPROCESSORS_ONLN);