diff options
Diffstat (limited to 'source/Host/posix/DomainSocket.cpp')
| -rw-r--r-- | source/Host/posix/DomainSocket.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Host/posix/DomainSocket.cpp b/source/Host/posix/DomainSocket.cpp index b4427e305f3e..9dc147196c08 100644 --- a/source/Host/posix/DomainSocket.cpp +++ b/source/Host/posix/DomainSocket.cpp @@ -21,7 +21,7 @@ using namespace lldb_private;  #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)) +#define SUN_LEN(ptr) (offsetof(struct sockaddr_un, sun_path) + strlen((ptr)->sun_path))  #endif  #endif // #ifdef __ANDROID__  | 
