h_errno is now declared in each file that uses it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5070 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f8e89e479d
commit
8c911f6ce6
@ -21,7 +21,6 @@ extern "C" {
|
||||
#define NO_DATA 4
|
||||
|
||||
#ifndef h_errno
|
||||
extern int h_errno;
|
||||
extern int *_h_errnop(void);
|
||||
#define h_errno (*_h_errnop())
|
||||
#endif /* h_errno */
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include <TLS.h>
|
||||
|
||||
extern int h_errno;
|
||||
#undef h_errno
|
||||
// was defined by netdb.h
|
||||
static int32 h_errno_tls;
|
||||
|
@ -98,6 +98,7 @@
|
||||
|
||||
#undef h_errno
|
||||
// was defined by netdb.h
|
||||
extern int h_errno;
|
||||
|
||||
#ifdef YP
|
||||
#include <rpc/rpc.h>
|
||||
@ -1517,7 +1518,6 @@ _yp_getaddrinfo(name, pai)
|
||||
/* resolver logic */
|
||||
|
||||
extern const char *__hostalias (const char *);
|
||||
extern int h_errno;
|
||||
extern int res_opt (int, u_char *, int, int);
|
||||
|
||||
/*
|
||||
|
@ -54,6 +54,7 @@
|
||||
|
||||
#undef h_errno
|
||||
// was defined by netdb.h
|
||||
extern int h_errno;
|
||||
|
||||
static const struct afd {
|
||||
int a_af;
|
||||
|
@ -93,6 +93,7 @@
|
||||
|
||||
#undef h_errno
|
||||
// was defined by netdb.h
|
||||
extern int h_errno;
|
||||
|
||||
extern const char *_res_opcodes[];
|
||||
extern const char *_res_resultcodes[];
|
||||
|
@ -66,6 +66,7 @@
|
||||
|
||||
#undef h_errno
|
||||
// was defined by netdb.h
|
||||
extern int h_errno;
|
||||
|
||||
/*
|
||||
* Form all types of queries.
|
||||
|
Loading…
Reference in New Issue
Block a user