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:
Kevin Easton
2012-05-28 13:52:18 +00:00
parent 1c2581aea3
commit d13eee6683
2 changed files with 44 additions and 2 deletions

View File

@@ -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