From 9a40fb4fb35506f6f1423318ed736caf5e490fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Thu, 26 Sep 2019 15:27:23 -0400 Subject: rpcbind: Add missing includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On musl systems there are implicit function declaration warnings due to missing string.h include. src/pmap_svc.c: In function ‘pmapproc_change’: src/pmap_svc.c:225:8: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration] if (!memcmp(rpcbreg.r_netid, "udp6", 4) || ^~~~~~ src/pmap_svc.c: In function ‘pmap_netid2ipprot’: src/pmap_svc.c:408:6: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (strcmp(netid, tcptrans) == 0) ^~~~~~ src/warmstart.c: In function ‘read_struct’: src/warmstart.c:116:22: warning: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration] filename, errno, strerror(errno)); ^~~~~~~~ perror Signed-off-by: Amadeusz Sławiński Signed-off-by: Steve Dickson --- src/pmap_svc.c | 1 + src/warmstart.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pmap_svc.c b/src/pmap_svc.c index a53dd5f..e5a5d0f 100644 --- a/src/pmap_svc.c +++ b/src/pmap_svc.c @@ -50,6 +50,7 @@ static char sccsid[] = "@(#)pmap_svc.c 1.23 89/04/05 Copyr 1984 Sun Micro"; #include #include #include +#include #include #include #include diff --git a/src/warmstart.c b/src/warmstart.c index aafcb61..8ecd933 100644 --- a/src/warmstart.c +++ b/src/warmstart.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.1