mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
OSX PowerPC might not define O_CLOEXEC
This commit is contained in:
parent
5795d9926c
commit
97529ade6e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user