]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: Fix getsockopt on Snow Leopard and lower
authorDoug Goldstein <cardoe@cardoe.com>
Thu, 10 Oct 2013 21:31:47 +0000 (16:31 -0500)
committerDoug Goldstein <cardoe@cardoe.com>
Fri, 11 Oct 2013 14:22:57 +0000 (09:22 -0500)
commit2f776d49796fe34dcf5a876f4c4e34f79b66f705
treea46885a5b538f68e6cd2a053af311db4b5be1043
parentfa23f9fcbb428722726cd986ab0f120fc1330a35
rpc: Fix getsockopt on Snow Leopard and lower

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
src/rpc/virnetsocket.c