mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-05 01:33:31 +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…
Reference in New Issue
Block a user