diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-02-21 10:39:33 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2013-02-21 10:39:33 -0500 |
commit | c4814d539434391df4dfa61551e5e2e96947326d (patch) | |
tree | 986ac305ba5b018418d0118b76016120c3cb0aea | |
parent | 86036582c001e99075f4d74cb3829df39f2a9ddf (diff) | |
download | rpcbind-c4814d539434391df4dfa61551e5e2e96947326d.tar.gz |
Fix building one systems w/out nss.h
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>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/rpcbind.c | 4 |
1 files changed, 4 insertions, 0 deletions
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*/ |