Commit 37515ebd by Natanael Copa Committed by Stéphane Graber

Include poll.h instead of sys/poll.h

poll.h is defined in POSIX: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html This fixes a compile warning when building with musl libc: In file included from start.c:46:0: /usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys /poll.h> to <poll.h> [-Werror=cpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h> ^ Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 565e571c
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include <poll.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/poll.h>
#include <sys/param.h> #include <sys/param.h>
#include <malloc.h> #include <malloc.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <libgen.h> #include <libgen.h>
#include <poll.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/poll.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include <termios.h> #include <termios.h>
#include <poll.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/mount.h> #include <sys/mount.h>
...@@ -43,7 +44,6 @@ ...@@ -43,7 +44,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/poll.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#if HAVE_SYS_CAPABILITY_H #if HAVE_SYS_CAPABILITY_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment