[PATCH] client: Include poll.h instead of sys/poll.h

Kristian Høgsberg hoegsberg at gmail.com
Fri Jan 17 11:29:19 PST 2014


On Tue, Jan 14, 2014 at 06:38:59PM +0100, Jonas 'Sortie' Termansen wrote:
> POSIX mandates the poll.h header as the standard location of poll(2).
> ---
>  src/wayland-client.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

That looks correct.  I think that maybe I copy and pasted a
sys/epoll.h #include and just deleted the 'e', there's no reason that
I know to include sys/poll.h there.  Patch applied.

Kristian

> diff --git a/src/wayland-client.c b/src/wayland-client.c
> index 363d5dd..bbf93ee 100644
> --- a/src/wayland-client.c
> +++ b/src/wayland-client.c
> @@ -36,7 +36,7 @@
>  #include <ctype.h>
>  #include <assert.h>
>  #include <fcntl.h>
> -#include <sys/poll.h>
> +#include <poll.h>
>  #include <pthread.h>
>  
>  #include "wayland-util.h"
> -- 
> 1.7.10.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list