Look for gethostbyname in libresolv and libnsl.

Should fix build problem on Solaris 2.6 reported by Tom G. Christensen.
This commit is contained in:
Darren Tucker 2016-02-17 09:48:15 +11:00
parent 5ac712d81a
commit 2fee909c3c
1 changed files with 3 additions and 1 deletions

View File

@ -1314,8 +1314,10 @@ AC_SEARCH_LIBS([openpty], [util bsd])
AC_SEARCH_LIBS([updwtmp], [util bsd])
AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp])
# On some platforms, inet_ntop may be found in libresolv or libnsl.
# On some platforms, inet_ntop and gethostbyname may be found in libresolv
# or libnsl.
AC_SEARCH_LIBS([inet_ntop], [resolv nsl])
AC_SEARCH_LIBS([gethostbyname], [resolv nsl])
AC_FUNC_STRFTIME