Commit 0647074d authored by Pekka Pessi's avatar Pekka Pessi

Declaring h_errno as a variable imported from DLL (when using WIN32).

darcs-hash:20051213115938-65a35-e27ee8fe41d455470000ecd5a95288e59bf39c16.gz
parent f444174b
......@@ -115,6 +115,14 @@ static struct gai_afd {
# define s6_addr8 s6_addr
#endif
#if !SU_HAVE_IN6
extern
#if defined(_WIN32) || defined(__CYGWIN__)
__declspec(dllimport)
#endif
int h_errno;
#endif
static int get_name(const char *, struct gai_afd *,
struct addrinfo **, char *, struct addrinfo *,
int);
......@@ -557,9 +565,6 @@ get_addr(hostname, af, res, pai, port0)
struct gai_afd *gai_afd;
int i, error = 0, h_error;
char *ap;
#ifndef INET6
extern int h_errno;
#endif
top = NULL;
sentinel.ai_next = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment