[libvirt] [PATCH] cygwin: build fix

Fixing a problem in the build on cygwin due to missing #define's. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> --- src/remote/remote_protocol.c | 6 ++++++ src/remote/remote_protocol.h | 6 ++++++ src/remote/remote_protocol.x | 6 ++++++ 3 files changed, 18 insertions(+) Index: libvirt-acl/src/remote/remote_protocol.h =================================================================== --- libvirt-acl.orig/src/remote/remote_protocol.h +++ libvirt-acl/src/remote/remote_protocol.h @@ -24,6 +24,12 @@ extern "C" { #ifndef IXDR_GET_INT32 # define IXDR_GET_INT32 IXDR_GET_LONG #endif +#ifndef IXDR_PUT_U_INT32 +# define IXDR_PUT_U_INT32 IXDR_PUT_U_LONG +#endif +#ifndef IXDR_GET_U_INT32 +# define IXDR_GET_U_INT32 IXDR_GET_U_LONG +#endif #define REMOTE_MESSAGE_MAX 262144 #define REMOTE_MESSAGE_HEADER_MAX 24 #define REMOTE_MESSAGE_PAYLOAD_MAX 262120 Index: libvirt-acl/src/remote/remote_protocol.x =================================================================== --- libvirt-acl.orig/src/remote/remote_protocol.x +++ libvirt-acl/src/remote/remote_protocol.x @@ -51,6 +51,12 @@ %#ifndef IXDR_GET_INT32 %# define IXDR_GET_INT32 IXDR_GET_LONG %#endif +%#ifndef IXDR_PUT_U_INT32 +%# define IXDR_PUT_U_INT32 IXDR_PUT_U_LONG +%#endif +%#ifndef IXDR_GET_U_INT32 +%# define IXDR_GET_U_INT32 IXDR_GET_U_LONG +%#endif /*----- Data types. -----*/ Index: libvirt-acl/src/remote/remote_protocol.c =================================================================== --- libvirt-acl.orig/src/remote/remote_protocol.c +++ libvirt-acl/src/remote/remote_protocol.c @@ -16,6 +16,12 @@ #ifndef IXDR_GET_INT32 # define IXDR_GET_INT32 IXDR_GET_LONG #endif +#ifndef IXDR_PUT_U_INT32 +# define IXDR_PUT_U_INT32 IXDR_PUT_U_LONG +#endif +#ifndef IXDR_GET_U_INT32 +# define IXDR_GET_U_INT32 IXDR_GET_U_LONG +#endif bool_t xdr_remote_nonnull_string (XDR *xdrs, remote_nonnull_string *objp)

On 08/16/2010 02:20 PM, Stefan Berger wrote:
Fixing a problem in the build on cygwin due to missing #define's.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
--- src/remote/remote_protocol.c | 6 ++++++ src/remote/remote_protocol.h | 6 ++++++ src/remote/remote_protocol.x | 6 ++++++ 3 files changed, 18 insertions(+)
ACK. (One of these days, I hope to get around to patching cygwin's <rpc/xdr.h> to provide these aliases - but that is orthogonal to this patch). -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On 08/16/2010 04:30 PM, Eric Blake wrote:
Fixing a problem in the build on cygwin due to missing #define's.
Signed-off-by: Stefan Berger<stefanb@us.ibm.com>
--- src/remote/remote_protocol.c | 6 ++++++ src/remote/remote_protocol.h | 6 ++++++ src/remote/remote_protocol.x | 6 ++++++ 3 files changed, 18 insertions(+) ACK. (One of these days, I hope to get around to patching cygwin's <rpc/xdr.h> to provide these aliases - but that is orthogonal to this
On 08/16/2010 02:20 PM, Stefan Berger wrote: patch).
Pushed. Stefan
participants (2)
-
Eric Blake
-
Stefan Berger