From bd5002b57ce855d1467cc647ea788dc9b56502d0 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 4 May 2021 23:12:56 +0000 Subject: 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 --- libs/binder/RpcServer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libs/binder/RpcServer.cpp') 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"; -- cgit v1.2.3-59-g8ed1b