From fe35a972f57a9f526002e5570f1d98800c5c239c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 25 Apr 2019 16:08:08 +0200 Subject: [PATCH] fix: https://github.com/RfidResearchGroup/proxmark3/issues/174 remove all offending code, return 1. Will only impact the speed of hardnested execution. --- client/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/util.c b/client/util.c index dadac9ef6..472b9d17d 100644 --- a/client/util.c +++ b/client/util.c @@ -873,11 +873,15 @@ int num_CPUs(void) { count = 1; return count; #elif defined(__APPLE__) +/* + TODO ICEMAN 2019, its commented out until someone finds a better solution #include "sys/sysctl.h" uint32_t logicalcores = 0; size_t size = sizeof( logicalcores ); sysctlbyname( "hw.logicalcpu", &logicalcores, &size, NULL, 0 ); return logicalcores; + */ + return 1; #else return 1; #endif