mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
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:
@@ -53,6 +53,14 @@ macro(CheckDLOPEN)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(CheckO_CLOEXEC)
|
||||
check_c_source_compiles("
|
||||
#include <fcntl.h>
|
||||
int flag = O_CLOEXEC;
|
||||
int main(void) {
|
||||
}" HAVE_O_CLOEXEC)
|
||||
endmacro()
|
||||
|
||||
# Requires:
|
||||
# - n/a
|
||||
macro(CheckOSS)
|
||||
|
||||
Reference in New Issue
Block a user