From 3ce4e95c5a21c92f943c5731c3fa7e522d20ba56 Mon Sep 17 00:00:00 2001 From: Margaret Lewicka Date: Wed, 4 Nov 2015 12:05:31 +0000 Subject: [PATCH] launch: add missing headers on Darwin Including sys/un.h for sockaddr_un and sys/fcntl.h for O_CLOEXEC/O_NONBLOCK. --- src/launch-libvirt.c | 1 + src/launch-unix.c | 4 ++++ 2 files changed, 5 insertions(+) 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"