[libvirt] [PATCH] rpc: Fix getsockopt on Snow Leopard and lower

Eric Blake eblake at redhat.com
Fri Oct 11 14:11:17 UTC 2013


On 10/11/2013 08:06 AM, Doug Goldstein wrote:
> Since 5a468b38b6 we use SOL_LOCAL for the 2nd argument of getsockopt()
> however Lion added the define SOL_LOCAL set to 0, which is the value to
> the 2nd argument of getsockopt() for Unix sockets on Mac OS X. So
> instead of using the define just pass 0 so we restore compatibility
> with Snow Leopard and Leopard.
> 
> Reported at https://github.com/mxcl/homebrew/pull/23141
> ---
> v2:
> * Refactored ifdef outside of the function and create a define for the
>   second argument of getsockopt().
> ---
>  src/rpc/virnetsocket.c | 23 ++++++++++++++++++-----
>  1 file changed, 18 insertions(+), 5 deletions(-)

Love how it turned out (then again, I helped half-write it :)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131011/6ccc9c4b/attachment-0001.sig>


More information about the libvir-list mailing list