rpcbind: Fix build with uclibc

The 0001-uclibc-nss.patch has been applied upstream
in a bit different way but solves the issue at hand

Change-Id: I7312d109d01c08338d4673383e2eaccee219b7bd
(From OE-Core rev: 8b84e778fb481075d245e1d5cc1b3b81024681d5)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2015-10-13 03:40:56 +00:00 committed by Richard Purdie
parent 369c53600e
commit fd66dd15aa
2 changed files with 0 additions and 32 deletions

View File

@ -1,30 +0,0 @@
Upstream-Status: Pending
From b8f0d7b7318ba344c25785d6f5cf3f8de98012d4 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 2 Feb 2010 09:36:03 +0000
Subject: [PATCH 1/2] uclibc-nss
---
src/rpcbind.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/rpcbind.c b/src/rpcbind.c
index 525ffba..1fe1a60 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -67,7 +67,11 @@
#include <pwd.h>
#include <string.h>
#include <errno.h>
+#if defined(__UCLIBC__)
+#define __nss_configure_lookup(x,y)
+#else
#include <nss.h>
+#endif
#include "config.h"
#include "rpcbind.h"
--
1.6.6.1

View File

@ -22,8 +22,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
"
MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \
"
UCLIBCPATCHES ?= ""
MUSLPATCHES ?= ""