diff --git a/racket/src/rktio/configure b/racket/src/rktio/configure index e4b0b97396..d0ddf66b81 100755 --- a/racket/src/rktio/configure +++ b/racket/src/rktio/configure @@ -3313,6 +3313,8 @@ fi case "$host_os" in solaris2*) + # Need these libs so that `getaddrinfo` is found: + LIBS="$LIBS -lsocket -lnsl -lintl" try_poll_syscall="no" # poll() has performance problems on Solaris? use_flag_pthread="no" use_flag_posix_pthread="yes" diff --git a/racket/src/rktio/configure.ac b/racket/src/rktio/configure.ac index eefc6e5323..12de26b4f0 100644 --- a/racket/src/rktio/configure.ac +++ b/racket/src/rktio/configure.ac @@ -54,6 +54,8 @@ AC_CHECK_LIB(dl, dlopen) case "$host_os" in solaris2*) + # Need these libs so that `getaddrinfo` is found: + LIBS="$LIBS -lsocket -lnsl -lintl" try_poll_syscall="no" # poll() has performance problems on Solaris? use_flag_pthread="no" use_flag_posix_pthread="yes" diff --git a/racket/src/rktio/rktio_network.c b/racket/src/rktio/rktio_network.c index 6635309d8f..fa68d7dce8 100644 --- a/racket/src/rktio/rktio_network.c +++ b/racket/src/rktio/rktio_network.c @@ -203,7 +203,7 @@ struct rktio_addrinfo_t { #endif /*****************************************************************/ -/* Fallback using gethostbyname where getddrinfo isn't avaulable */ +/* Fallback using gethostbyname where getddrinfo isn't available */ #ifdef HAVE_GETADDRINFO # define rktio_AI_PASSIVE AI_PASSIVE