git.samba.org
/
slow
/
socket_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
647161c
)
torture: add HAVE_IPV6 guard to torture_server_address()
author
Michael Adam
<obnox@samba.org>
Wed, 4 Jun 2014 07:35:02 +0000
(09:35 +0200)
committer
Andreas Schneider
<asn@samba.org>
Wed, 9 Jul 2014 15:44:23 +0000
(17:44 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
tests/torture.c
patch
|
blob
|
history
diff --git
a/tests/torture.c
b/tests/torture.c
index 9a1d1ce36ebeef5cdaeebafeeceb5aa137d07cc2..02ddc963c59a09327c7febe5aa37c55d8a5ae0af 100644
(file)
--- a/
tests/torture.c
+++ b/
tests/torture.c
@@
-70,6
+70,7
@@
const char *torture_server_address(int family)
return TORTURE_ECHO_SRV_IPV4;
}
+#ifdef HAVE_IPV6
case AF_INET6: {
const char *ip6 = getenv("TORTURE_SERVER_ADDRESS_IPV6");
@@
-79,6
+80,7
@@
const char *torture_server_address(int family)
return TORTURE_ECHO_SRV_IPV6;
}
+#endif
default:
return NULL;
}