Module: sip-router Branch: master Commit: 2c74ba02c843349a6ad30f7e668a7a194dac679c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2c74ba02c843349a6ad30f7e668a7a194dac679c
Author: Timo Teräs <[email protected]> Committer: Timo Teräs <[email protected]> Date: Mon Apr 21 10:57:11 2014 +0300 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. --- io_wait.h | 2 +- stats.h | 2 +- tcp_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/io_wait.h b/io_wait.h index b7ae925..8129842 100644 --- a/io_wait.h +++ b/io_wait.h @@ -63,7 +63,7 @@ #endif #define _GNU_SOURCE /* for POLLRDHUP on linux */ -#include <sys/poll.h> +#include <poll.h> #include <fcntl.h> #ifdef HAVE_EPOLL diff --git a/stats.h b/stats.h index 7ab3596..f079541 100644 --- a/stats.h +++ b/stats.h @@ -32,7 +32,7 @@ #include <ctype.h> #include <sys/mman.h> -#include <sys/fcntl.h> +#include <fcntl.h> #include <sys/time.h> #include <time.h> #include <sys/utsname.h> diff --git a/tcp_main.c b/tcp_main.c index 6444074..c0320dd 100644 --- a/tcp_main.c +++ b/tcp_main.c @@ -150,7 +150,7 @@ #ifdef HAVE_SELECT #include <sys/select.h> #endif -#include <sys/poll.h> +#include <poll.h> #include "ip_addr.h" _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
