summaryrefslogtreecommitdiff
path: root/src/auto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-18 18:24:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-18 18:24:18 +0200
commitb6fb0516ec862a18fdffe06c9400d507a7193835 (patch)
tree4ff904f75596cb65758ee6a39dba61da97abea58 /src/auto
parenta494f56f885876c98a276f7acfa386bfbb344680 (diff)
downloadvim-git-b6fb0516ec862a18fdffe06c9400d507a7193835.tar.gz
patch 8.2.0594: MS-Windows: cannot build with WINVER set to 0x0501v8.2.0594
Problem: MS-Windows: cannot build with WINVER set to 0x0501. Solution: Only use inet_ntop() when available. (Ozaki Kiichi, closes #5946)
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 33bf66322..e72cf70cd 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -7872,6 +7872,17 @@ $as_echo "$vim_cv_ipv6_networking" >&6; }
if test "x$vim_cv_ipv6_networking" = "xyes"; then
$as_echo "#define FEAT_IPV6 1" >>confdefs.h
+ for ac_func in inet_ntop
+do :
+ ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
+if test "x$ac_cv_func_inet_ntop" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_INET_NTOP 1
+_ACEOF
+
+fi
+done
+
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }