launch: add missing headers on Darwin

Including sys/un.h for sockaddr_un and sys/fcntl.h for
O_CLOEXEC/O_NONBLOCK.
This commit is contained in:
Margaret Lewicka
2015-11-04 12:05:31 +00:00
committed by Richard W.M. Jones
parent 0c879fcd15
commit 3ce4e95c5a
2 changed files with 5 additions and 0 deletions

View File

@@ -52,6 +52,7 @@
/* Fixes for Mac OS X */
#if defined __APPLE__ && defined __MACH__
#include <sys/un.h>
#include <sys/fcntl.h>
#endif
#ifndef SOCK_CLOEXEC
# define SOCK_CLOEXEC O_CLOEXEC

View File

@@ -25,6 +25,10 @@
#include <string.h>
#include <libintl.h>
#if defined __APPLE__ && defined __MACH__
#include <sys/un.h>
#endif
#include "guestfs.h"
#include "guestfs-internal.h"
#include "guestfs_protocol.h"