mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
Enable llgs to build against experimental Android AOSP lldb/llvm/clang/compiler-rt repos.
See http://reviews.llvm.org/D5495 for more details. These are changes that are part of an effort to support building llgs, within the AOSP source tree, using the Android.mk build system, when using the llvm/clang/lldb git repos from AOSP replaced with the experimental ones currently in github.com/tfiala/aosp-{llvm,clang,lldb,compiler-rt}. llvm-svn: 218568
This commit is contained in:
@@ -40,6 +40,13 @@ typedef void * get_socket_option_arg_type;
|
||||
const NativeSocket Socket::kInvalidSocketValue = -1;
|
||||
#endif // #if defined(_WIN32)
|
||||
|
||||
#ifdef __ANDROID__
|
||||
// Android does not have SUN_LEN
|
||||
#ifndef SUN_LEN
|
||||
#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen((ptr)->sun_path))
|
||||
#endif
|
||||
#endif // #ifdef __ANDROID__
|
||||
|
||||
Socket::Socket(NativeSocket socket, SocketProtocol protocol, bool should_close)
|
||||
: IOObject(eFDTypeSocket, should_close)
|
||||
, m_protocol(protocol)
|
||||
|
||||
Reference in New Issue
Block a user