diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-10-28 10:07:58 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-10-28 10:07:58 -0400 |
commit | 98ca016d5a2fb7a7da9e2332e3c59b123b820477 (patch) | |
tree | eb863ecf410fb9f700803735b8d9be834a9eb81e | |
parent | 9266c745930cd052713e83c7ecb0917c17f33505 (diff) | |
download | rpcbind-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.in | 2 | ||||
-rw-r--r-- | src/rpcbind.c | 1 |
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" |