[libvirt] [PATCH] MacOS: Handle changes to args in xdrproc_t

Doug Goldstein cardoe at cardoe.com
Tue Oct 29 00:35:57 UTC 2013


On Mon, Oct 28, 2013 at 1:05 PM, Doug Goldstein <cardoe at cardoe.com> wrote:
> With Mac OS X 10.9, xdrproc_t is no longer defined as:
>
> typedef bool_t (*xdrproc_t) (XDR *, void *, ...);

This was the typedef from Linux accidentally so I've updated that as well.

>
> but instead as
>
> typedef bool-t (*xdrproc_t) (XDR *, void *, unsigned int);

I fixed the typo above in "bool_t".

For some more information, I was originally thinking about just
passing the third argument as 0 always within our code but
unfortunately that would break at least on uclibc where they had the
same concerns as Apple but instead changed the prototype to just 2
parameters. If people would prefer that I can submit that change
instead.

-- 
Doug Goldstein




More information about the libvir-list mailing list