diff options
author | Param Reddy <param@spinorx.com> | 2017-10-20 23:40:14 -0700 |
---|---|---|
committer | Param Reddy <param@spinorx.com> | 2017-10-24 13:17:29 -0700 |
commit | 819ec5069b050c21d3cbaa69289b89dfc7080979 (patch) | |
tree | 5c23d19ddd38806ac0bc9a261908c1ac3445ce9c /third_party/cares/cares.BUILD | |
parent | b96287a13f0f54048e582feec707a10ad7635881 (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.BUILD | 11 |
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, |