cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations spawn/posix_spawn_file_actions_addchdir.c -o spawn/posix_spawn_file_actions_addchdir -D_POSIX_C_SOURCE=202405L -lm -lpthread -lnetwork -lbsd -latomic spawn/posix_spawn_file_actions_addchdir.c:6:74: error: 'posix_spawn_file_actions_addchdir' undeclared here (not in a function); did you mean 'posix_spawn_file_actions_addclose'? 6 | int (*foo)(posix_spawn_file_actions_t *restrict, const char *restrict) = posix_spawn_file_actions_addchdir; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | posix_spawn_file_actions_addclose