mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix again OSX
This commit is contained in:
parent
980ad29d22
commit
90463cb79f
1 changed files with 1 additions and 1 deletions
|
@ -874,7 +874,7 @@ int num_CPUs(void) {
|
|||
return count;
|
||||
#elif defined(__APPLE__)
|
||||
#include "sys/sysctl.h"
|
||||
uint32 logicalcores = 0;
|
||||
uint32_t logicalcores = 0;
|
||||
size_t size = sizeof( logicalcores );
|
||||
sysctlbyname( "hw.logicalcpu", &logicalcores, &size, NULL, 0 );
|
||||
return logicalcores;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue