Fix the h_errno issue of this thread-safe global variable, thanks to Thread Local Storage.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6470 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2004-02-02 23:34:21 +00:00
parent b8c2776bb7
commit f8d0ea9641
+2 -3
View File
@@ -20,10 +20,9 @@ extern "C" {
#define NO_RECOVERY 3
#define NO_DATA 4
#ifndef h_errno
// Make h_errno thread-safe
extern int *_h_errnop(void);
#define h_errno (*_h_errnop())
#endif /* h_errno */
#define h_errno (*(_h_errnop()))
struct hostent {
char *h_name;