Acording to POSIX <poll.h> should be used instead of <sys/poll.h>. Libcs like musl libc added a redict due maintain compat with older glibcs and added the following warning: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> | ^~~~~~~ Ref: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html