summaryrefslogtreecommitdiff
path: root/src/rpcbind.c
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 /src/rpcbind.c
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>
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r--src/rpcbind.c3
1 files changed, 1 insertions, 2 deletions
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>