[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

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.


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.
>From 461d036b1490e6c3bdcb5f6ae745b1ff6be7cbe1 Mon Sep 17 00:00:00 2001
From: Richard Jones <rich 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))
+#ifdef __APPLE__
+#define xdr_uint32_t xdr_u_int32_t
 /* Also in guestfsd.c */
 #define GUESTFWD_ADDR ""
 #define GUESTFWD_PORT "6666"

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]