From 5be99e2ee1a17028574fcbd90b9ba2c09555585e Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 18 Jun 1999 23:15:18 -0400 Subject: snapshot of project "lynx", label v2-8-3dev_2 --- WWW/Library/Implementation/HTTCP.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'WWW/Library/Implementation/HTTCP.c') diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index fdc6b66a..a0f6948a 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -576,8 +576,10 @@ PRIVATE size_t fill_rehostent ARGS3( #define h_errno my_errno static int my_errno; #else /* we do HAVE_H_ERRNO: */ +#ifndef h_errno /* there may be a macro as well as the extern data */ extern int h_errno; #endif +#endif /* Resolve an internet hostname, like gethostbyname ** ------------------------------------------------ @@ -1173,7 +1175,7 @@ PUBLIC int HTParseInet ARGS2( if ((port = strchr(host, ':')) != NULL) { *port++ = 0; /* Chop off port */ if (port[0] >= '0' && port[0] <= '9') { -#ifdef unix +#ifdef UNIX soc_in->sin_port = htons(atol(port)); #else /* VMS: */ #ifdef DECNET -- cgit 1.4.1-2-gfad0