From: Weili Qian <qianweili@huawei.com> The header file <sys/poll.h> is deprecated in modern Linux systems(e.g., glibc). Current builds may trigger a compilation warning when -Werror is enabled: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> Therefore, use poll.h instead of sys/poll.h. Signed-off-by: Weili Qian <qianweili@huawei.com> --- v1/wd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/wd.c b/v1/wd.c index bab2712..f008695 100644 --- a/v1/wd.c +++ b/v1/wd.c @@ -18,12 +18,12 @@ #include <errno.h> #include <fcntl.h> #include <limits.h> +#include <poll.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> -#include <sys/poll.h> #include <sys/types.h> #include <unistd.h> -- 2.43.0