summaryrefslogtreecommitdiff
path: root/lib/nss_wrapper
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-28 11:51:46 +0200
committerGünther Deschner <gd@samba.org>2009-05-28 11:53:51 +0200
commit136b2a3eb21eda28e7a18547751ee20f097e7492 (patch)
tree3b7b75e8dd6a43dd6ce1549e5da803f0ba713c2e /lib/nss_wrapper
parent37e4c92b383397a2c77db7e5d8adf2fa4a24d398 (diff)
downloadsamba-136b2a3eb21eda28e7a18547751ee20f097e7492.tar.gz
samba-136b2a3eb21eda28e7a18547751ee20f097e7492.tar.bz2
samba-136b2a3eb21eda28e7a18547751ee20f097e7492.zip
nss_wrapper: fix nss_wrapper build for solaris.
Guenther
Diffstat (limited to 'lib/nss_wrapper')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index 3c061f0de8..1875dc3e4f 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -954,6 +954,7 @@ _PUBLIC_ int nwrap_getpwent_r(struct passwd *pwdst, char *buf,
{
if (!nwrap_enabled()) {
#ifdef SOLARIS_GETPWENT_R
+ struct passwd *pw;
pw = real_getpwent_r(pwdst, buf, buflen);
if (!pw) {
if (errno == 0) {
@@ -1188,6 +1189,7 @@ _PUBLIC_ int nwrap_getgrent_r(struct group *grdst, char *buf,
{
if (!nwrap_enabled()) {
#ifdef SOLARIS_GETGRENT_R
+ struct group *gr;
gr = real_getgrent_r(grdst, buf, buflen);
if (!gr) {
if (errno == 0) {