clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations poll/ppoll.c -o poll/ppoll -D_POSIX_C_SOURCE=202405L -lm -lintl poll/ppoll.c:5:51: error: declaration of 'struct timespec' will not be visible outside of this function [-Werror,-Wvisibility] int (*foo)(struct pollfd [], nfds_t, const struct timespec *restrict, const sigset_t *restrict) = ppoll; ^ poll/ppoll.c:5:77: error: unknown type name 'sigset_t' int (*foo)(struct pollfd [], nfds_t, const struct timespec *restrict, const sigset_t *restrict) = ppoll; ^ poll/ppoll.c:5:99: error: use of undeclared identifier 'ppoll'; did you mean 'poll'? int (*foo)(struct pollfd [], nfds_t, const struct timespec *restrict, const sigset_t *restrict) = ppoll; ^~~~~ poll /usr/include/poll.h:83:5: note: 'poll' declared here int poll(struct pollfd *, nfds_t, int); ^ poll/ppoll.c:5:7: error: incompatible pointer types initializing 'int (*)(struct pollfd *, nfds_t, const struct timespec *restrict, const int *restrict)' with an expression of type 'int (struct pollfd *, nfds_t, int)' [-Werror,-Wincompatible-pointer-types] int (*foo)(struct pollfd [], nfds_t, const struct timespec *restrict, const sigset_t *restrict) = ppoll; ^ ~~~~~ 4 errors generated.