Mac OS X: include <rpc/types.h> before <rpc/xdr.h>
authorRichard Jones <rich@koneko.home.annexia.org>
Sun, 21 Mar 2010 17:49:49 +0000 (17:49 +0000)
committerRichard Jones <rich@koneko.home.annexia.org>
Mon, 22 Mar 2010 10:41:45 +0000 (10:41 +0000)
In PortableXDR this is not included automatically so we
have to include it explicitly to get definitions for the
XDR types.

src/guestfs.h

index 5b8ad09..1a09fe8 100644 (file)
@@ -62,6 +62,7 @@ extern void guestfs_set_subprocess_quit_callback (guestfs_h *g, guestfs_subproce
 extern void guestfs_set_launch_done_callback (guestfs_h *g, guestfs_launch_done_cb cb, void *opaque);
 
 /*--- Structures and actions ---*/
+#include <rpc/types.h>
 #include <rpc/xdr.h>
 #include <guestfs-structs.h>
 #include <guestfs-actions.h>