From bdbeab5693d7c28df3174d5352d5a3ff78b22d92 Mon Sep 17 00:00:00 2001 From: Ted Cheng Date: Sat, 9 Oct 2010 17:26:31 +0000 Subject: nss-pam-ldapd fixes for solaris 10 build git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1247 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/passwd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nss/passwd.c') diff --git a/nss/passwd.c b/nss/passwd.c index 26327e5..2b0cddd 100644 --- a/nss/passwd.c +++ b/nss/passwd.c @@ -30,6 +30,9 @@ #include "common.h" #include "compat/attrs.h" +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *pwentfp; + /* read a passwd entry from the stream */ static nss_status_t read_passwd( TFILE *fp,struct passwd *result, @@ -72,7 +75,7 @@ nss_status_t _nss_ldap_getpwuid_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *pwentfp; +/* static __thread TFILE *pwentfp; */ /* open a connection to read all passwd entries */ nss_status_t _nss_ldap_setpwent(int UNUSED(stayopen)) @@ -158,9 +161,6 @@ static nss_status_t _nss_nslcd_getpwuid_r( return retv; } -/* thread-local file pointer to an ongoing request */ -static __thread TFILE *pwentfp; - /* open a connection to the nslcd and write the request */ static nss_status_t _xnss_ldap_setpwent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { -- cgit v1.2.3