mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
committed by
Richard W.M. Jones
parent
0c879fcd15
commit
3ce4e95c5a
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user