summaryrefslogtreecommitdiff
blob: ca666e668f544de81d5c82744bc10929678c0ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/configure.ac
+++ b/configure.ac
@@ -139,8 +139,10 @@
 USES_IPV6=
 AC_CHECK_FUNC(getaddrinfo,
 [if test "$WANTS_IPV6" = "yes"; then
-	AC_DEFINE([ENABLE_IPV6], [], [Define to enable IPv6])
+	AC_DEFINE([ENABLE_IPV6], [1], [Define to enable IPv6])
 	USES_IPV6=yes
+ else
+	AC_DEFINE([ENABLE_IPV6], [0], [Define to enable IPv6])
 fi])
 
 AC_DEFUN([NEED_RES_STATE_EXT_TEST_SRC], [