diff options
| author | Michael Adam <obnox@samba.org> | 2014-06-04 09:35:02 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2014-07-09 17:44:23 +0200 |
| commit | f0aeb93c9b47a869bbeed422c77895d6cd3dd76f (patch) | |
| tree | 420916f38186e08e921456287912ead379cfb681 | |
| parent | 647161c0f7b0c3b86ec2dcca68cb0116755a3eab (diff) | |
| download | socket_wrapper-f0aeb93c9b47a869bbeed422c77895d6cd3dd76f.tar.gz socket_wrapper-f0aeb93c9b47a869bbeed422c77895d6cd3dd76f.tar.xz socket_wrapper-f0aeb93c9b47a869bbeed422c77895d6cd3dd76f.zip | |
torture: add HAVE_IPV6 guard to torture_server_address()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
| -rw-r--r-- | tests/torture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 9a1d1ce..02ddc96 100644 --- 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; } |
