Skip to content

Commit

Permalink
macosx: Include <sys/un.h> and define SOCK_* for Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
shulima authored and rwmjones committed Feb 6, 2015
1 parent eaae0b6 commit 7ddf6bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/launch-libvirt.c
Expand Up @@ -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
Expand Down

0 comments on commit 7ddf6bc

Please sign in to comment.