Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
31e3c81c
Commit
31e3c81c
authored
8 years ago
by
Perumaal S
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/perumaalgoog/grpc
parents
923354b3
d331936e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
0001-Fix-Android-CPP-build.patch
+67
-0
67 additions, 0 deletions
0001-Fix-Android-CPP-build.patch
with
67 additions
and
0 deletions
0001-Fix-Android-CPP-build.patch
0 → 100644
+
67
−
0
View file @
31e3c81c
From 923354b39bea315a53393387b4c373d448c30a3f Mon Sep 17 00:00:00 2001
From: Perumaal S <perumaal@chromium.org>
Date: Thu, 22 Sep 2016 11:35:22 -0700
Subject: [PATCH] Fix Android+CPP build
---
src/core/lib/support/cpu_linux.c | 2 +-
src/core/lib/support/cpu_posix.c | 2 +-
src/core/lib/support/log_linux.c | 2 +-
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 d6f7e7d..db6c5a2 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 667bde7..1340c4f 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 299b377..f3fead1 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 6ae6320..868d565 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>
--
2.8.0.rc3.226.g39d4020
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment