summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-10-28 10:07:58 -0400
committerSteve Dickson <steved@redhat.com>2008-10-28 10:07:58 -0400
commit98ca016d5a2fb7a7da9e2332e3c59b123b820477 (patch)
treeeb863ecf410fb9f700803735b8d9be834a9eb81e
parent9266c745930cd052713e83c7ecb0917c17f33505 (diff)
downloadrpcbind-98ca016d5a2fb7a7da9e2332e3c59b123b820477.tar.gz
rpcbind: Squelch a compiler warning
Include <nss.h> to get a forward declaration of __nss_configure_lookup(). This eliminates the compiler warning: rpcbind.c: In function main rpcbind.c:163: warning: implicit declaration of function _nss_configure_lookup Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--configure.in2
-rw-r--r--src/rpcbind.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 9ff0bc7..69f4169 100644
--- a/configure.in
+++ b/configure.in
@@ -48,7 +48,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
netinet/in.h stdlib.h string.h \
sys/param.h sys/socket.h \
sys/time.h syslog.h \
- unistd.h])
+ unistd.h nss.h])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([tirpc], [clnt_create])
diff --git a/src/rpcbind.c b/src/rpcbind.c
index ad23b37..7fb4062 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -68,6 +68,7 @@
#include <pwd.h>
#include <string.h>
#include <errno.h>
+#include <nss.h>
#include "config.h"
#include "rpcbind.h"