From 7a8145875c9cef4eea32ff0a4b64ff33b2255c2d Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sat, 24 Jun 2017 17:06:06 -0600 Subject: [PATCH] rktio: `configure` adjustment intended to fix OpenIndiana build --- racket/src/rktio/configure | 2 ++ racket/src/rktio/configure.ac | 2 ++ racket/src/rktio/rktio_network.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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