[PATCH 2/5] rpcbind: Squelch a compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---

 configure.in  |    2 +-
 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 e0e7ddf..71b372d 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"
 

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux