mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Use posix_spawn_file_actions_addchdir_np() on macOS
posix_spawn_file_actions_addchdir() was introduced in macOS 26, but we want to be able to run on systems all the way back to macOS 15
This commit is contained in:
parent
f8a1ea021b
commit
9e0549d8ff
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ bool SDL_SYS_CreateProcessWithProperties(SDL_Process *process, SDL_PropertiesID
|
|||
#ifdef HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR
|
||||
#ifdef SDL_PLATFORM_APPLE
|
||||
if (__builtin_available(macOS 10.15, *)) {
|
||||
if (posix_spawn_file_actions_addchdir(&fa, working_directory) != 0) {
|
||||
if (posix_spawn_file_actions_addchdir_np(&fa, working_directory) != 0) {
|
||||
SDL_SetError("posix_spawn_file_actions_addchdir failed: %s", strerror(errno));
|
||||
goto posix_spawn_fail_all;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue