diff -r -u ../orig/pop2.c ./pop2.c
--- ../orig/pop2.c	Tue Sep 12 01:10:44 1995
+++ ./pop2.c	Sat Aug 16 00:29:49 1997
@@ -67,6 +67,7 @@
 
 #include  <sys/time.h>
 #include  <errno.h>
+#include  <netdb.h>
 
 #include  "socket.h"
 #include  "popclient.h"
@@ -134,7 +135,10 @@
 
   /* open the socket to the POP server */
   if ((socket = Socket(servername,POP2_PORT)) < 0) {
-    perror("doPOP2: socket");
+    if (socket == -2)
+	herror("doPOP2: socket");
+    else
+    	perror("doPOP2: socket");
     return(PS_SOCKET);
   }
     
diff -r -u ../orig/pop3.c ./pop3.c
--- ../orig/pop3.c	Sat Aug 16 00:49:05 1997
+++ ./pop3.c	Sat Aug 16 00:30:56 1997
@@ -67,6 +67,7 @@
 
 #include  <sys/time.h>
 #include  <ctype.h>
+#include  <netdb.h>
 #include  <errno.h>
 
 #include  "socket.h"
@@ -122,7 +123,10 @@
     
   /* open the socket and get the greeting */
   if ((socket = Socket(servername,POP3_PORT)) < 0) {
-    perror("doPOP3: socket");
+    if (socket == -2)
+	herror("doPOP3: socket");
+    else
+    	perror("doPOP3: socket");
     return(PS_SOCKET);
   }
 
diff -r -u ../orig/socket.c ./socket.c
--- ../orig/socket.c	Mon Aug 14 20:36:48 1995
+++ ./socket.c	Sat Aug 16 00:14:57 1997
@@ -102,7 +102,7 @@
     {
         hp = gethostbyname(host);
         if (hp == NULL)
-            return -1;
+            return -2;
         memcpy(&ad.sin_addr, hp->h_addr, hp->h_length);
     }
     ad.sin_port = htons(clientPort);
