compile on Solaris 2.6, and also fix typo.
int server, false = 0, family, socktype;
struct sockaddr *addr;
struct sockaddr_in sin;
- socklen_t addrlen;
+ size_t addrlen; /* socklen_t addrlen */
#ifdef HAVE_ADDRINFO
struct addrinfo *in, hints;
#else
struct hostent *host;
- struct servent serv;
+ struct servent *serv;
#endif
proto = getprotobyname ("tcp");