OSX PowerPC might not define O_CLOEXEC

This commit is contained in:
twinaphex 2017-12-04 02:48:08 +01:00
parent 5795d9926c
commit 97529ade6e

View File

@ -39,6 +39,20 @@
#include <fcntl.h>
#include <sys/mman.h>
#ifdef __APPLE__
#ifndef O_CLOEXEC
#define O_CLOEXEC 0x1000000
#endif
#else
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
#endif
struct nbio_mmap_unix_t
{
int fd;