summaryrefslogtreecommitdiff
path: root/libs/binder/RpcServer.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/RpcServer.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/RpcServer.cpp')
-rw-r--r--libs/binder/RpcServer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp
index aaebb23f6f..cc77c27d50 100644
--- a/libs/binder/RpcServer.cpp
+++ b/libs/binder/RpcServer.cpp
@@ -49,8 +49,6 @@ bool RpcServer::setupUnixDomainServer(const char* path) {
return setupSocketServer(UnixSocketAddress(path));
}
-#ifdef __BIONIC__
-
bool RpcServer::setupVsockServer(unsigned int port) {
// realizing value w/ this type at compile time to avoid ubsan abort
constexpr unsigned int kAnyCid = VMADDR_CID_ANY;
@@ -58,8 +56,6 @@ bool RpcServer::setupVsockServer(unsigned int port) {
return setupSocketServer(VsockSocketAddress(kAnyCid, port));
}
-#endif // __BIONIC__
-
bool RpcServer::setupInetServer(unsigned int port, unsigned int* assignedPort) {
const char* kAddr = "127.0.0.1";