diff options
author | Perumaal S <perumaal@chromium.org> | 2016-09-22 11:35:22 -0700 |
---|---|---|
committer | Perumaal S <perumaal@chromium.org> | 2016-09-22 11:35:22 -0700 |
commit | 923354b39bea315a53393387b4c373d448c30a3f (patch) | |
tree | a1b36d93af9bf08916c5a3820878e154eb24fbbc /src/core/lib | |
parent | 6984840145c6d5bb581e2880345e684665b2c040 (diff) |
Fix Android+CPP build
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/support/cpu_linux.c | 2 | ||||
-rw-r--r-- | src/core/lib/support/cpu_posix.c | 2 | ||||
-rw-r--r-- | src/core/lib/support/log_linux.c | 2 | ||||
-rw-r--r-- | src/core/lib/support/log_posix.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/support/cpu_linux.c b/src/core/lib/support/cpu_linux.c index d6f7e7d3da..db6c5a2cac 100644 --- a/src/core/lib/support/cpu_linux.c +++ b/src/core/lib/support/cpu_linux.c @@ -37,7 +37,7 @@ #include <grpc/support/port_platform.h> -#ifdef GPR_CPU_LINUX +#if defined (GPR_CPU_LINUX) && !defined (GPR_ANDROID) #include <errno.h> #include <sched.h> diff --git a/src/core/lib/support/cpu_posix.c b/src/core/lib/support/cpu_posix.c index 667bde7cad..1340c4fd62 100644 --- a/src/core/lib/support/cpu_posix.c +++ b/src/core/lib/support/cpu_posix.c @@ -33,7 +33,7 @@ #include <grpc/support/port_platform.h> -#ifdef GPR_CPU_POSIX +#if defined (GPR_CPU_POSIX) || defined (GPR_ANDROID) #include <errno.h> #include <string.h> diff --git a/src/core/lib/support/log_linux.c b/src/core/lib/support/log_linux.c index 299b377373..f3fead10f9 100644 --- a/src/core/lib/support/log_linux.c +++ b/src/core/lib/support/log_linux.c @@ -41,7 +41,7 @@ #include <grpc/support/port_platform.h> -#ifdef GPR_LINUX_LOG +#if defined(GPR_LINUX_LOG) && !defined(GPR_ANDROID) #include <grpc/support/alloc.h> #include <grpc/support/log.h> diff --git a/src/core/lib/support/log_posix.c b/src/core/lib/support/log_posix.c index 6ae6320767..868d565af8 100644 --- a/src/core/lib/support/log_posix.c +++ b/src/core/lib/support/log_posix.c @@ -33,7 +33,7 @@ #include <grpc/support/port_platform.h> -#if defined(GPR_POSIX_LOG) +#if defined (GPR_POSIX_LOG) && !defined (GPR_ANDROID) #include <grpc/support/alloc.h> #include <grpc/support/log.h> |