Check for O_CLOEXEC definition in fcntl.h at configuration time,

If not available, define it internally as 0 (in SDL_internal.h).
Define it as available for macOS >= 10.7 in SDL_config_macosx.h.
This commit is contained in:
Ozkan Sezer authored and Ozkan Sezer committed 2021-11-27 19:23:10 +03:00
1 parent f903a39e13
commit 5a0ea7fb17
8 files changed
+84 -11

No files matched your search

+1
View File
@@ -222,6 +222,7 @@
#cmakedefine HAVE_INOTIFY_INIT 1
#cmakedefine HAVE_INOTIFY_INIT1 1
#cmakedefine HAVE_INOTIFY 1
#cmakedefine HAVE_O_CLOEXEC 1
/* Apple platforms might be building universal binaries, where Intel builds
can use immintrin.h but other architectures can't. */