Skip to content
Snippets Groups Projects
Commit e80fc7a7 authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #778 from ctiller/mac

Fix mac build
parents 36ccead4 b5a79f62
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <string.h> #include <string.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/sync.h>
static __thread char magic_thread_local; static __thread char magic_thread_local;
...@@ -55,7 +56,7 @@ static void init_ncpus() { ...@@ -55,7 +56,7 @@ static void init_ncpus() {
unsigned gpr_cpu_num_cores(void) { unsigned gpr_cpu_num_cores(void) {
static gpr_once once = GPR_ONCE_INIT; static gpr_once once = GPR_ONCE_INIT;
gpr_once_init(&once, init_num_cpus); gpr_once_init(&once, init_ncpus);
return ncpus; return ncpus;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment