summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testsockets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testsockets.c b/test/testsockets.c
index 8fc74b937..2573da85e 100644
--- a/test/testsockets.c
+++ b/test/testsockets.c
@@ -91,7 +91,11 @@ int main(void)
char recvbuf[80];
char *ip_addr;
apr_port_t fromport;
+#if APR_HAVE_IPV6
int family = APR_INET6;
+#else
+ int family = APR_INET;
+#endif
STD_TEST_NEQ("Initializing APR", apr_initialize())