[Pkg-libvirt-commits] [libguestfs] 245/384: macosx: Include <sys/un.h> and define SOCK_* for Mac OS X.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:57:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 7ddf6bcbfdc66855b594afaaacdc4998177f2286
Author: Margaret Lewicka <margaret at meaningless.name>
Date:   Fri Feb 6 10:01:28 2015 +0000

    macosx: Include <sys/un.h> and define SOCK_* for Mac OS X.
---
 src/launch-libvirt.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index 5a4328c..d670e79 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -57,6 +57,18 @@
 #include "guestfs-internal-actions.h"
 #include "guestfs_protocol.h"
 
+/* Fixes for Mac OS X */
+#if defined __APPLE__ && defined __MACH__
+#include <sys/un.h>
+#endif
+#ifndef SOCK_CLOEXEC
+# define SOCK_CLOEXEC O_CLOEXEC
+#endif
+#ifndef SOCK_NONBLOCK
+# define SOCK_NONBLOCK O_NONBLOCK
+#endif
+/* End of fixes for Mac OS X */
+
 /* Check minimum required version of libvirt.  The libvirt backend
  * is new and not the default, so we can get away with forcing
  * people who want to try it to have a reasonably new version of

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list