[libvirt] [PATCH] cygwin: Handle differences in the XDR implementation

Eric Blake eblake at redhat.com
Mon Apr 26 16:30:11 UTC 2010

On 04/25/2010 05:31 AM, Matthias Bolte wrote:
> Cygwin's XDR implementation defines xdr_u_int64_t instead of
> xdr_uint64_t and lacks IXDR_PUT_INT32/IXDR_GET_INT32.

Would you mind reporting this upstream?  Charles Wilson on the cygwin
list can probably fix that.

> Alter the IXDR_GET_LONG regex in rpcgen_fix.pl so it doesn't destroy
> the #define IXDR_GET_INT32 IXDR_GET_LONG in remote_protocol.x.

> Also fix the remote_protocol.h regex in rpcgen_fix.pl.
> -#include "./remote/remote_protocol.h"
> +#include "remote_protocol.h"
>  #include "internal.h"
>  #include <arpa/inet.h>
> +#ifdef HAVE_XDR_U_INT64_T
> +# define xdr_uint64_t xdr_u_int64_t
> +#endif
> +#ifndef IXDR_PUT_INT32

Is this ever going to bite us if cygwin adds support for 64-bit windows?
 Then again, if we report the missing defines upstream, cygwin's xdr
implementation may be fixed before a 64-bit port.

But no problem in addressing things in parallel - ACK to this patch, so
we aren't sitting around waiting for an upstream patch.

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

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

More information about the libvir-list mailing list