The Cygwin resolver library doesn't fill out the list of name servers in
res_init() if /etc/resolv.conf doesn't exist, which is usual. Add code to handle this by calling GetNetworkParams(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@198 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -164,6 +164,8 @@ if test x"$bx_cv_lib_resolver" != x"not found"; then
|
||||
if test x"$bx_cv_lib_resolver" != x"none required"; then
|
||||
LIBS="$bx_cv_lib_resolver $LIBS"
|
||||
fi
|
||||
dnl This is for getting the DNS servers on Windows
|
||||
AC_CHECK_HEADER([iphlpapi.h], [AC_CHECK_LIB(iphlpapi, GetNetworkParams, [], [])], [], [#include <windows.h>])
|
||||
else
|
||||
AC_MSG_WARN([No resolver library found, /nslookup will be disabled.])
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user