projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a4cef
)
core: include <poll.h> instead of <sys/poll.h>
author
Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>
Mon, 23 Jan 2017 08:18:32 +0000
(21:18 +1300)
committer
Bartosz 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
patch
|
blob
|
history
diff --git
a/src/lib/core.c
b/src/lib/core.c
index 713419e98e5235d6430353841b68cccb960a221e..e4ca720b7156d1e75c544cb98debf4fdfb449185 100644
(file)
--- a/
src/lib/core.c
+++ b/
src/lib/core.c
@@
-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