#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)