From patchwork Tue Feb 19 18:48:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 2163981 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 44744DF24C for ; Tue, 19 Feb 2013 18:48:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933327Ab3BSSsB (ORCPT ); Tue, 19 Feb 2013 13:48:01 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:48081 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932923Ab3BSSsA (ORCPT ); Tue, 19 Feb 2013 13:48:00 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1883333BF20; Tue, 19 Feb 2013 18:48:00 +0000 (UTC) From: Mike Frysinger To: libtirpc-devel@lists.sourceforge.net Cc: linux-nfs@vger.kernel.org Subject: [PATCH [rpcbind]] fix building one systems w/out nss.h Date: Tue, 19 Feb 2013 13:48:10 -0500 Message-Id: <1361299690-19402-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.8.1.2 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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 Signed-off-by: Mike Frysinger --- 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 #include #include +#ifdef HAVE_NSS_H #include +#else +static inline void __nss_configure_lookup(const char *db, const char *s) {} +#endif #include "rpcbind.h" /*#define RPCBIND_DEBUG*/