]> git.ipfire.org Git - thirdparty/lxc.git/commit
Include poll.h instead of sys/poll.h
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 29 Jan 2014 14:23:43 +0000 (14:23 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 29 Jan 2014 16:15:42 +0000 (16:15 +0000)
commit37515ebdf0d75c018513d55b0fe172df3d1a3c46
treed48316f03385947025d8d84c2975cfba0a485c5e
parent565e571c8f88aeef8c23bf79479b0fde3c8e069b
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: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/commands.c
src/lxc/lxc_console.c
src/lxc/start.c