about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTCP.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-06-18 23:15:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1999-06-18 23:15:18 -0400
commit5be99e2ee1a17028574fcbd90b9ba2c09555585e (patch)
tree1bfb6d74bcc359caef514b87d4fa3efef62dfe97 /WWW/Library/Implementation/HTTCP.c
parentc7bfda903760e4bd0d0d8327560f6dee5e1dc059 (diff)
downloadlynx-snapshots-5be99e2ee1a17028574fcbd90b9ba2c09555585e.tar.gz
snapshot of project "lynx", label v2-8-3dev_2
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r--WWW/Library/Implementation/HTTCP.c4
1 files changed, 3 insertions, 1 deletions
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