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/ethers.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'nss/ethers.c') diff --git a/nss/ethers.c b/nss/ethers.c index bc70e81..5c1b758 100644 --- a/nss/ethers.c +++ b/nss/ethers.c @@ -42,6 +42,8 @@ static nss_status_t read_etherent( return NSS_STATUS_SUCCESS; } +static __thread TFILE *etherentfp; + #ifdef NSS_FLAVOUR_GLIBC /* map a hostname to the corresponding ethernet address */ @@ -67,7 +69,7 @@ nss_status_t _nss_ldap_getntohost_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *etherentfp; +/* static __thread TFILE *etherentfp; */ /* open a connection to read all ether entries */ nss_status_t _nss_ldap_setetherent(int UNUSED(stayopen)) @@ -97,7 +99,7 @@ nss_status_t _nss_ldap_endetherent(void) #ifndef NSS_BUFLEN_ETHERS #define NSS_BUFLEN_ETHERS 1024 -#endif +#endif /* NSS_BUFLEN_ETHERS */ #define errnop &errno @@ -159,9 +161,6 @@ static nss_status_t _xnss_ldap_getntohost_r(nss_backend_t UNUSED(*be),void *args return retv; } -/* thread-local file pointer to an ongoing request */ -static __thread TFILE *etherentfp; - static nss_status_t _xnss_ldap_setetherent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(etherentfp); @@ -169,7 +168,7 @@ static nss_status_t _xnss_ldap_setetherent(nss_backend_t UNUSED(*be),void UNUSED static nss_status_t _xnss_ldap_getetherent_r(nss_backend_t UNUSED(*be),void *args) { - /* TODO: cns3 uses struct ether,verify */ + /* TODO: padl uses struct ether,verify */ struct etherent result; char *buffer=NSS_ARGS(args)->buf.buffer; size_t buflen=NSS_ARGS(args)->buf.buflen; -- cgit v1.2.3