]> granicus.if.org Git - libtirpc/commitdiff
Fix location of various standard header includes
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 22 Apr 2015 18:50:27 +0000 (14:50 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 23 Apr 2015 12:29:45 +0000 (08:29 -0400)
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>
src/auth_time.c
src/clnt_bcast.c
src/clnt_dg.c
src/clnt_generic.c
src/clnt_vc.c
src/key_call.c
src/pmap_rmt.c
src/svc.c
src/svc_vc.c

index ace86bffff9682aacf52336cee3b27ffb635bfd7..13717ff6f19335e2d8124583c69dd9226945a16a 100644 (file)
@@ -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>
index 194a738c7f011eb620ab4f45d75206ce723bb08d..25e72fdb6483775ef131c14cd6b0a7f907981583 100644 (file)
@@ -45,7 +45,7 @@
 #include <net/if.h>
 #include <netinet/in.h>
 #include <ifaddrs.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <rpc/rpc.h>
 #ifdef PORTMAP
 #include <rpc/pmap_prot.h>
index dcc621ca911add19ee7683b6e9767dea83f2eb31..248138bbafc75e016604dbc7e1b9ab0eed7f76ac 100644 (file)
@@ -37,7 +37,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <stdint.h>
-#include <sys/poll.h>
+#include <poll.h>
 
 #include <sys/time.h>
 
index b9b07bcf396e1065b5222e7c07c32a1537b8d22f..3f3dabffcc1f2b5556fa36b1f1fab2ca2308992c 100644 (file)
@@ -29,7 +29,7 @@
 #include <pthread.h>
 #include <reentrant.h>
 #include <sys/types.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
index 61264d448941752b21d141dc7317bcd392b8ee8e..a72f9f7abc3eb207946856206b317c0ba63453ab 100644 (file)
@@ -48,7 +48,7 @@
 
 #include <reentrant.h>
 #include <sys/types.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/syslog.h>
 #include <sys/un.h>
 #include <sys/uio.h>
index 1a6430b2f51454032d090425c764816fbe12fe3a..589fd6fdb67aa37d41c287cdab1579062892097f 100644 (file)
@@ -56,7 +56,7 @@
 #include <stdlib.h>
 #include <signal.h>
 #include <sys/wait.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 
 #include "dump.h"
 
index b81d771b9f0e1a6b77233bbe1fc0a81bde001a13..1c76114bca5b35a05004d9579b1caa475e91d36f 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <sys/types.h>
 #include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/socket.h>
 
 #include <net/if.h>
index 8afd15d4cef1472efa45f03e55382703c8ef3519..32c84f1782ce5b3e15585faf6c08ce1473d04885 100644 (file)
--- a/src/svc.c
+++ b/src/svc.c
@@ -40,7 +40,7 @@
 
 #include <reentrant.h>
 #include <sys/types.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <assert.h>
 #include <errno.h>
 #include <stdlib.h>
index 9dba72a2a0e2cea5308bc2aa1b3bbac84f5724f6..98246312e9ffced5b7df4d33beef223f9988a3d8 100644 (file)
@@ -40,7 +40,7 @@
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/param.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/un.h>
 #include <sys/time.h>
 #include <sys/uio.h>