core: include <poll.h> instead of <sys/poll.h>
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 23 Jan 2017 08:18:32 +0000 (21:18 +1300)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 23 Jan 2017 10:06:41 +0000 (11:06 +0100)
<sys/poll.h> is an internal C library header, which shouldn't be
included directly. <poll.h> should be included instead, as advertised
in poll(2).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c

index 713419e98e5235d6430353841b68cccb960a221e..e4ca720b7156d1e75c544cb98debf4fdfb449185 100644 (file)
@@ -20,7 +20,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <linux/gpio.h>
 
 struct gpiod_chip