Dirk Mueller
868d58656c
- Fixed rpc broadcast handling (bnc#857324) Upgraded to upstream 0.2.1-rc4 as part of this, and rebased the patch set. OBS-URL: https://build.opensuse.org/request/show/215477 OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=32
36 lines
963 B
Diff
36 lines
963 B
Diff
From c4814d539434391df4dfa61551e5e2e96947326d Mon Sep 17 00:00:00 2001
|
|
From: Mike Frysinger <vapier@gentoo.org>
|
|
Date: Thu, 21 Feb 2013 10:39:33 -0500
|
|
Subject: [PATCH 01/24] 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>
|
|
---
|
|
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.7.12.4
|
|
|