Browse code

core: fix some #includes to be posix compliant

sys/poll.h and sys/fcntl.h are GNUisms and might not exist on
strictly posix compliant systems. This fixes to use the posix
specified standard locations of these headers.

E.g musl c-library will give warnings on using these non-standard
glibc 'internal' headers.

Timo Teräs authored on 21/04/2014 07:57:11
Showing 3 changed files
... ...
@@ -63,7 +63,7 @@
63 63
 #endif
64 64
 
65 65
 #define _GNU_SOURCE  /* for POLLRDHUP on linux */
66
-#include <sys/poll.h>
66
+#include <poll.h>
67 67
 #include <fcntl.h>
68 68
 
69 69
 #ifdef HAVE_EPOLL
... ...
@@ -32,7 +32,7 @@
32 32
 
33 33
 #include <ctype.h>
34 34
 #include <sys/mman.h>
35
-#include <sys/fcntl.h>
35
+#include <fcntl.h>
36 36
 #include <sys/time.h>
37 37
 #include <time.h>
38 38
 #include <sys/utsname.h>
... ...
@@ -150,7 +150,7 @@
150 150
 #ifdef HAVE_SELECT
151 151
 #include <sys/select.h>
152 152
 #endif
153
-#include <sys/poll.h>
153
+#include <poll.h>
154 154
 
155 155
 
156 156
 #include "ip_addr.h"