-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Description
This is a warning, and will fail with -Werror:
/Users/calvin/src/php-src/ext/standard/proc_open.c:1397:7: error: 'posix_spawn_file_actions_addchdir_np' is deprecated: first deprecated in macOS 26.0 - posix_spawn_file_actions_addchdir(3) has replaced posix_spawn_file_actions_addchdir_np(3) [-Werror,-Wdeprecated-declarations]
1397 | r = posix_spawn_file_actions_addchdir_np(&factions, cwd);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/spawn.h:182:9: note: 'posix_spawn_file_actions_addchdir_np' has been explicitly marked deprecated here
182 | int posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *,
| ^
Looks like since it got standardized (quite a while ago?) and renamed. NetBSD and Solaris dropped the _np but has it for compatibility, FreeBSD hasn't. macOS added the non-suffixed one in 26 and marked the suffixed one deprecated. The behaviour should be the same.
Reactions are currently unavailable