diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-02-24 21:12:48 -0800 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-02-24 21:12:48 -0800 |
commit | e80fc7a7fd9b3bca9ec9647acb70fbb055e3052e (patch) | |
tree | bc1037cb970958c20f28885c82f5dc2ae59bcf22 /src/core | |
parent | 36ccead4039872e02b85f6c99e899fc9739bc743 (diff) | |
parent | b5a79f62dec25afb34b16ff40e40c6f92d20ec65 (diff) |
Merge pull request #778 from ctiller/mac
Fix mac build
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/support/cpu_posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/support/cpu_posix.c b/src/core/support/cpu_posix.c index 33c7b90b0b..5f45fb0bc3 100644 --- a/src/core/support/cpu_posix.c +++ b/src/core/support/cpu_posix.c @@ -40,6 +40,7 @@ #include <string.h> #include <grpc/support/log.h> +#include <grpc/support/sync.h> static __thread char magic_thread_local; @@ -55,7 +56,7 @@ static void init_ncpus() { unsigned gpr_cpu_num_cores(void) { static gpr_once once = GPR_ONCE_INIT; - gpr_once_init(&once, init_num_cpus); + gpr_once_init(&once, init_ncpus); return ncpus; } |