use __h_errno_location for h_errno

we do not bother making h_errno thread-local since the only interfaces
that use it are inherently non-thread-safe. but still use the
potentially-thread-local ABI to access it just to avoid lock-in.
This commit is contained in:
Rich Felker
2012-05-12 23:45:07 -04:00
parent 3777f5b90d
commit e68c51ac46
3 changed files with 14 additions and 1 deletions

View File

@ -1 +1,9 @@
#include <netdb.h>
#undef h_errno;
int h_errno;
int *__h_errno_location(void)
{
return &h_errno;
}