summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2019-09-26 15:29:19 -0400
committerSteve Dickson <steved@redhat.com>2019-09-26 15:29:19 -0400
commitfc61ce53bf9e7a099b6356dd88122f60f9a21eda (patch)
treea05ecd963b212ce512b484558a5f937ec90d9120
parent9a40fb4fb35506f6f1423318ed736caf5e490fb7 (diff)
downloadrpcbind-fc61ce53bf9e7a099b6356dd88122f60f9a21eda.tar.gz
rpcbind: Correct some of includes
Musl based systems are more pedantic than glibc ones about where we include files from. Correct some headers to include proper files. In file included from src/rpcb_svc_com.c:45:0: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h> ^~~~~~~ In file included from src/rpcbind.c:45:0: /usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] #warning redirecting incorrect #include <sys/errno.h> to <errno.h> ^~~~~~~ In file included from src/rpcbind.c:49:0: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] #warning redirecting incorrect #include <sys/signal.h> to <signal.h> ^~~~~~~ In file included from src/util.c:48:0: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h> ^~~~~~~ Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/rpcb_svc_com.c2
-rw-r--r--src/rpcbind.c3
-rw-r--r--src/util.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
index 9c1c3af..1743dad 100644
--- a/src/rpcb_svc_com.c
+++ b/src/rpcb_svc_com.c
@@ -42,7 +42,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <bits/poll.h>
#include <sys/socket.h>
#include <rpc/rpc.h>
diff --git a/src/rpcbind.c b/src/rpcbind.c
index cc848b1..e39f4a1 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -42,11 +42,10 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/errno.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
diff --git a/src/util.c b/src/util.c
index bf2d024..5d0283e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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>
#include <errno.h>
#include <stdlib.h>