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:
@@ -20,10 +20,9 @@ extern "C" {
|
|||||||
#define NO_RECOVERY 3
|
#define NO_RECOVERY 3
|
||||||
#define NO_DATA 4
|
#define NO_DATA 4
|
||||||
|
|
||||||
#ifndef h_errno
|
// Make h_errno thread-safe
|
||||||
extern int *_h_errnop(void);
|
extern int *_h_errnop(void);
|
||||||
#define h_errno (*_h_errnop())
|
#define h_errno (*(_h_errnop()))
|
||||||
#endif /* h_errno */
|
|
||||||
|
|
||||||
struct hostent {
|
struct hostent {
|
||||||
char *h_name;
|
char *h_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user