public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH [rpcbind]] fix building one systems w/out nss.h
@ 2013-02-19 18:48 Mike Frysinger
  2013-02-19 18:54 ` Chuck Lever
  2013-02-21 15:43 ` Steve Dickson
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2013-02-19 18:48 UTC (permalink / raw)
  To: libtirpc-devel; +Cc: linux-nfs

The nss.h header is glibc-specific, so use the existing HAVE_NSS_H define
to avoid including/using it when it is not available.

URL: http://bugs.gentoo.org/458024
Reported-by: Mark Reiche <porphyr@gmx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 src/rpcbind.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/rpcbind.c b/src/rpcbind.c
index 9a0504d..83dbe93 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -67,7 +67,11 @@
 #include <pwd.h>
 #include <string.h>
 #include <errno.h>
+#ifdef HAVE_NSS_H
 #include <nss.h>
+#else
+static inline void __nss_configure_lookup(const char *db, const char *s) {}
+#endif
 #include "rpcbind.h"
 
 /*#define RPCBIND_DEBUG*/
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-21 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19 18:48 [PATCH [rpcbind]] fix building one systems w/out nss.h Mike Frysinger
2013-02-19 18:54 ` Chuck Lever
2013-02-19 19:14   ` Mike Frysinger
2013-02-19 19:16     ` Chuck Lever
2013-02-21 15:43 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox