[libvirt] [PATCH] build: avoid non-portable IPv6 struct member, for MacOS X

Eric Blake eblake at redhat.com
Wed Sep 15 21:03:20 UTC 2010


On 09/15/2010 03:00 PM, Justin Clift wrote:
> On 09/16/2010 06:52 AM, Eric Blake wrote:
>> * src/util/network.c (getIPv6Addr): Manually join s6_addr bytes,
>> instead of assuming s6_addr16 shorts.
>> Reported by Justin Clifton; solution suggested by Bruno Haible.
>> ---
>>
>> Like this. Tested on Fedora, not MacOS X; but since getting it wrong
>> _does_ fail the testsuite, I'm confident it works (spoken as one who
>> swapped the in6_addr[2*i] and in6_addr[2*i+1] bytes on my first attempt).
>
> ACK. Compiles fine on OSX now. :)

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list