]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Look for gethostbyname in libresolv and libnsl.
authorDarren Tucker <dtucker@zip.com.au>
Tue, 16 Feb 2016 22:48:15 +0000 (09:48 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Tue, 16 Feb 2016 22:48:15 +0000 (09:48 +1100)
Should fix build problem on Solaris 2.6 reported by Tom G. Christensen.

configure.ac

index 0b399ce2cc0f72b917c15d5ab3d6a7564f85eb68..b4c0aaab763976fcbf9ab3d3fa6abce8bb4f37bd 100644 (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