[Libguestfs] [PATCH] Mac OS X: 'xdr_uint32_t' is 'xdr_u_int32_t'

Richard W.M. Jones rjones at redhat.com
Sun Mar 21 20:44:59 UTC 2010


After this, and adding a small hack to work around the Gnulib/setenv
problem, I was able to get an appliance to boot.  The actual appliance
I was booting was one that I copied off a Fedora machine.

However there is still some problem with vmchannel which I'm looking
into, so the daemon cannot talk to the library yet.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
-------------- next part --------------
>From 461d036b1490e6c3bdcb5f6ae745b1ff6be7cbe1 Mon Sep 17 00:00:00 2001
From: Richard Jones <rich at koneko.home.annexia.org>
Date: Sun, 21 Mar 2010 20:41:41 +0000
Subject: [PATCH] Mac OS X: 'xdr_uint32_t' is 'xdr_u_int32_t'

---
 src/guestfs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/guestfs.c b/src/guestfs.c
index 61e9302..850264e 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -100,6 +100,10 @@ static int qemu_supports (guestfs_h *g, const char *option);
 #define MAX(a,b) ((a)>(b)?(a):(b))
 #endif
 
+#ifdef __APPLE__
+#define xdr_uint32_t xdr_u_int32_t
+#endif
+
 /* Also in guestfsd.c */
 #define GUESTFWD_ADDR "10.0.2.4"
 #define GUESTFWD_PORT "6666"
-- 
1.6.4.1



More information about the Libguestfs mailing list