summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-28 11:51:46 +0200
committerKarolin Seeger <kseeger@samba.org>2009-06-02 08:59:27 +0200
commitbc70ee9615790f7069848ff5c63c09796fcc1d83 (patch)
tree9fcbbf82c52cd345683a8a3cdb46399c9cb42c28 /lib
parent260a746c8765bb63a2c9073a6dc17bc504003191 (diff)
downloadsamba-bc70ee9615790f7069848ff5c63c09796fcc1d83.tar.gz
samba-bc70ee9615790f7069848ff5c63c09796fcc1d83.tar.xz
samba-bc70ee9615790f7069848ff5c63c09796fcc1d83.zip
nss_wrapper: fix nss_wrapper build for solaris.
Guenther (cherry picked from commit 136b2a3eb21eda28e7a18547751ee20f097e7492) (cherry picked from commit 0677a068dce0bd1cc76fc3ea13322e57b1d1c3af)
Diffstat (limited to 'lib')
-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 3c061f0de84..1875dc3e4fc 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) {