[libvirt] [PATCH] Fix remote_protocol header for Solaris

Daniel P. Berrange berrange at redhat.com
Mon Dec 15 21:55:19 UTC 2008


On Mon, Dec 15, 2008 at 11:05:10AM -0800, john.levon at sun.com wrote:
> ++
> ++#if defined(__sun)
> ++#include <rpc/xdr.h>
> ++#define u_quad_t uint64_t
> ++#define quad_t int64_t
> ++#define xdr_u_quad_t xdr_uint64_t
> ++#define xdr_quad_t xdr_int64_t
> ++#define IXDR_GET_LONG IXDR_GET_INT32

The Linux xdr.h seems to have both sets of definitions in all these
cases, so I think we can just make rpcgen_fix.pl do this subsitution
for us. Interestingly, it is already doing s/PUT_LONG/PUT_INT32/ because
of broken PUT_LONG on Linux.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list