[lldb-dev] [PATCH] no sin_len field in sockaddr_in on linux

Sylvestre Ledru sylvestre at debian.org
Tue Dec 10 03:03:30 PST 2013


Le 09/12/2013 17:15, Ed Maste a écrit :
> On 8 December 2013 16:24, Xavier de Gaye <xdegaye at gmail.com> wrote:
>>
>> Build fails on linux after Revision 196547:
>> Modified local spawning in debugserver processes
>>
>> This patch seems to fix it:
>>
>> diff --git a/tools/lldb/source/Core/ConnectionFileDescriptor.cpp
>> b/tools/lldb/source/Core/ConnectionFileDescriptor.cpp
>> --- a/tools/lldb/source/Core/ConnectionFileDescriptor.cpp
>> +++ b/tools/lldb/source/Core/ConnectionFileDescriptor.cpp
>> @@ -1380,8 +1380,7 @@
>>          {
>>              struct sockaddr_in accept_addr;
>>              ::memset (&accept_addr, 0, sizeof accept_addr);
>> -            accept_addr.sin_len = sizeof accept_addr;
> 
> We still need to set .sin_len on the platforms that have it though.
The (crappy) attached patch fixes the build failure under GNU/Linux. If
you are ok, I can apply it.
However, some tests freezes. Not sure it is related.

Sylvestre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sin_len.diff
Type: text/x-patch
Size: 2014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131210/6cf92391/attachment.bin>


More information about the lldb-dev mailing list