summaryrefslogtreecommitdiff
path: root/src/auth_time.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-22 14:50:27 -0400
committerSteve Dickson <steved@redhat.com>2015-04-23 08:29:45 -0400
commit6063b9f2399a2aee4861b2de391e4e3dda630ebe (patch)
treec975dbe7b56c711a5c79b3d3ce1f99b2008c9e20 /src/auth_time.c
parent6d8d4b5a7bf63812b95d152762c604cdc1ee3911 (diff)
downloadti-rpc-6063b9f2399a2aee4861b2de391e4e3dda630ebe.tar.gz
Fix location of various standard header includes
poll.h, signal.h, errno.h and fcntl.h are all defined in POSIX and their location are not under sys/ This fixes various compile warning when building with musl libc like: In file included from clnt_dg.c:40:0: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] In file included from clnt_generic.c:32:0: /usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp] In file included from auth_time.c:34:0: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] In file included from auth_time.c:35:0: /usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/auth_time.c')
-rw-r--r--src/auth_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth_time.c b/src/auth_time.c
index ace86bf..13717ff 100644
--- a/src/auth_time.c
+++ b/src/auth_time.c
@@ -31,8 +31,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
-#include <sys/signal.h>
-#include <sys/errno.h>
+#include <signal.h>
+#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>