cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations spawn/posix_spawn_file_actions_addfchdir.c -o spawn/posix_spawn_file_actions_addfchdir -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv spawn/posix_spawn_file_actions_addfchdir.c:6:49: error: use of undeclared identifier 'posix_spawn_file_actions_addfchdir'; did you mean 'posix_spawn_file_actions_addclose'? 6 | int (*foo)(posix_spawn_file_actions_t *, int) = posix_spawn_file_actions_addfchdir; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | posix_spawn_file_actions_addclose /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/spawn.h:72:9: note: 'posix_spawn_file_actions_addclose' declared here 72 | int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int) __API_AVAILABLE(macos(10.5), ios(2.0)) __API_UNAVAILABLE(watchos, tvos); | ^ 1 error generated.