diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index 1649884f4..ad0721043 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -52,6 +52,7 @@ /* Fixes for Mac OS X */ #if defined __APPLE__ && defined __MACH__ #include +#include #endif #ifndef SOCK_CLOEXEC # define SOCK_CLOEXEC O_CLOEXEC diff --git a/src/launch-unix.c b/src/launch-unix.c index 5cce9c195..f57910d12 100644 --- a/src/launch-unix.c +++ b/src/launch-unix.c @@ -25,6 +25,10 @@ #include #include +#if defined __APPLE__ && defined __MACH__ +#include +#endif + #include "guestfs.h" #include "guestfs-internal.h" #include "guestfs_protocol.h"