aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/cares/cares.BUILD
diff options
context:
space:
mode:
authorGravatar Param Reddy <param@spinorx.com>2017-10-20 23:40:14 -0700
committerGravatar Param Reddy <param@spinorx.com>2017-10-24 13:17:29 -0700
commit819ec5069b050c21d3cbaa69289b89dfc7080979 (patch)
tree5c23d19ddd38806ac0bc9a261908c1ac3445ce9c /third_party/cares/cares.BUILD
parentb96287a13f0f54048e582feec707a10ad7635881 (diff)
Android does not have getservbyport_r so use getservbyport
Diffstat (limited to 'third_party/cares/cares.BUILD')
-rw-r--r--third_party/cares/cares.BUILD11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/cares/cares.BUILD b/third_party/cares/cares.BUILD
index bca1bd0d07..058a992ea9 100644
--- a/third_party/cares/cares.BUILD
+++ b/third_party/cares/cares.BUILD
@@ -3,6 +3,15 @@ config_setting(
values = {"cpu": "darwin"},
)
+# Android is not officially supported.
+# This just helps with the build for now.
+config_setting(
+ name = "android",
+ values = {
+ "crosstool_top": "//external:android/crosstool",
+ },
+)
+
config_setting(
name = "ios_x86_64",
values = {"cpu": "ios_x86_64"},
@@ -103,6 +112,7 @@ cc_library(
":ios_armv7s": ["config_darwin/ares_config.h"],
":ios_arm64": ["config_darwin/ares_config.h"],
":darwin": ["config_darwin/ares_config.h"],
+ ":android": ["config_android/ares_config.h"],
"//conditions:default": ["config_linux/ares_config.h"],
}),
includes = [
@@ -114,6 +124,7 @@ cc_library(
":ios_armv7s": ["config_darwin"],
":ios_arm64": ["config_darwin"],
":darwin": ["config_darwin"],
+ ":android": ["config_android"],
"//conditions:default": ["config_linux"],
}),
linkstatic = 1,