summaryrefslogtreecommitdiff
path: root/nss/protocols.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-18 13:02:37 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-18 13:02:37 +0000
commitd86497bc393606519eff0900020dec8bf3a6055f (patch)
treea5da17b6f29cbc1c47e6473c343842f3056d9f88 /nss/protocols.c
parentfa62cd3946761609f296acfa6d7b44cbf76bbe3d (diff)
use the AX_TLS macro to find correct thread-local storage class compiler directive
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1921 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/protocols.c')
-rw-r--r--nss/protocols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/protocols.c b/nss/protocols.c
index cc1e60f..7787161 100644
--- a/nss/protocols.c
+++ b/nss/protocols.c
@@ -2,7 +2,7 @@
protocols.c - NSS lookup functions for protocol database
Copyright (C) 2006 West Consulting
- Copyright (C) 2006, 2007, 2008, 2010, 2012 Arthur de Jong
+ Copyright (C) 2006, 2007, 2008, 2010, 2012, 2013 Arthur de Jong
Copyright (C) 2010 Symas Corporation
This library is free software; you can redistribute it and/or
@@ -67,7 +67,7 @@ nss_status_t _nss_ldap_getprotobynumber_r(int number, struct protoent *result,
}
/* thread-local file pointer to an ongoing request */
-static __thread TFILE *protoentfp;
+static TLS TFILE *protoentfp;
/* start a request to read all protocol entries */
nss_status_t _nss_ldap_setprotoent(int UNUSED(stayopen))