Skip to content

Commit d8a3e82

Browse files
committed
Fix macOS posix_spawn_file_actions_addchdir availability handling
1 parent 293b38b commit d8a3e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/proc_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline int php_spawn_addchdir(
5151
posix_spawn_file_actions_t *factions,
5252
const char *cwd
5353
) {
54-
#if defined(__APPLE__)
54+
#if defined(__APPLE__) && defined(HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR)
5555
if (__builtin_available(macOS 26.0, *)) {
5656
return posix_spawn_file_actions_addchdir(factions, cwd);
5757
} else {

0 commit comments

Comments
 (0)