From 9e0549d8fffacf4e4faa24936d7ca33eb8f2d1c1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 19 Sep 2025 08:00:03 -0700 Subject: [PATCH] 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 --- src/process/posix/SDL_posixprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process/posix/SDL_posixprocess.c b/src/process/posix/SDL_posixprocess.c index 2e05b01324..627f0de688 100644 --- a/src/process/posix/SDL_posixprocess.c +++ b/src/process/posix/SDL_posixprocess.c @@ -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; }