summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-05-04 23:12:56 +0000
committer Steven Moreland <smoreland@google.com> 2021-05-11 01:26:16 +0000
commitbd5002b57ce855d1467cc647ea788dc9b56502d0 (patch)
tree4345d08af23e47514fdc946ef4a5989bef9e9187 /libs/binder/RpcSession.cpp
parent4fccd098967a1cad0a188672b801bf4e7b515079 (diff)
libbinder: vsock compiles on host
Currently not tested, since connecting doesn't work. However, this helps avoid the ifndef business. Bug: 185269356 Test: binderRpcTest Change-Id: I3b93e0a97e671d3d939979f00bc1e297f593a31d
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index f4a3cffa24..f406c2d7d0 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -61,14 +61,10 @@ bool RpcSession::setupUnixDomainClient(const char* path) {
return setupSocketClient(UnixSocketAddress(path));
}
-#ifdef __BIONIC__
-
bool RpcSession::setupVsockClient(unsigned int cid, unsigned int port) {
return setupSocketClient(VsockSocketAddress(cid, port));
}
-#endif // __BIONIC__
-
bool RpcSession::setupInetClient(const char* addr, unsigned int port) {
auto aiStart = InetSocketAddress::getAddrInfo(addr, port);
if (aiStart == nullptr) return false;