[Lldb-commits] [lldb] r251563 - Remove unused SUN_LEN macro for Android.

Oleksiy Vyalov via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 28 15:21:03 PDT 2015


Author: ovyalov
Date: Wed Oct 28 17:21:02 2015
New Revision: 251563

URL: http://llvm.org/viewvc/llvm-project?rev=251563&view=rev
Log:
Remove unused SUN_LEN macro for Android.

Modified:
    lldb/trunk/source/Host/posix/DomainSocket.cpp

Modified: lldb/trunk/source/Host/posix/DomainSocket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/DomainSocket.cpp?rev=251563&r1=251562&r2=251563&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/DomainSocket.cpp (original)
+++ lldb/trunk/source/Host/posix/DomainSocket.cpp Wed Oct 28 17:21:02 2015
@@ -17,13 +17,6 @@
 using namespace lldb;
 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))
-#endif
-#endif // #ifdef __ANDROID__
-
 namespace {
 
 const int kDomain = AF_UNIX;




More information about the lldb-commits mailing list