replaced the BIND guess (based on BSDishness) with checks for gethostbyname and setho...
[mmh] / uip / ftpsbr.c
index d36e0e5..525554e 100644 (file)
@@ -27,16 +27,15 @@ extern int v_verbose;
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
+#include <errno.h>
 
-#if defined(BIND) && !defined(h_addr)
+#if !defined(h_addr)
 # define h_addr        h_addr_list[0]
 #endif
 
 #define        inaddr_copy(hp,sin) \
     memcpy((char *) &((sin)->sin_addr), (hp)->h_addr, (hp)->h_length)
 
-extern int errno;
-
 #define        start_tcp_client(sock,priv) \
        socket (AF_INET, SOCK_STREAM, 0)