clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations sys_select/pselect.c -o sys_select/pselect -D_POSIX_C_SOURCE=202405L -lm -lintl sys_select/pselect.c:5:132: error: use of undeclared identifier 'pselect'; did you mean 'select'? int (*foo)(int, fd_set *restrict, fd_set *restrict, fd_set *restrict, const struct timespec *restrict, const sigset_t *restrict) = pselect; ^~~~~~~ select /usr/include/sys/select.h:71:5: note: 'select' declared here int select(int, fd_set * __restrict, fd_set * __restrict, ^ sys_select/pselect.c:5:7: error: incompatible pointer types initializing 'int (*)(int, fd_set *restrict, fd_set *restrict, fd_set *restrict, const struct timespec *restrict, const sigset_t *restrict)' with an expression of type 'int (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timeval *restrict)' [-Werror,-Wincompatible-pointer-types] int (*foo)(int, fd_set *restrict, fd_set *restrict, fd_set *restrict, const struct timespec *restrict, const sigset_t *restrict) = pselect; ^ ~~~~~~~ 2 errors generated.