summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-25 16:42:19 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-26 16:50:48 +1100
commit63fc3978089df403d7e63462593784ff3d05e6e7 (patch)
treea76563fd30f9ad5a04dc5d83926a7a10132c927f
parent92332fb2368c641db1552d1f2a2f7b3deaa11519 (diff)
downloadsamba-63fc3978089df403d7e63462593784ff3d05e6e7.tar.gz
samba-63fc3978089df403d7e63462593784ff3d05e6e7.tar.bz2
samba-63fc3978089df403d7e63462593784ff3d05e6e7.zip
tsocket: not all systems have IPV6_V6ONLY
-rw-r--r--lib/tsocket/tsocket_bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c
index c44ba4e714..1a7a4eed62 100644
--- a/lib/tsocket/tsocket_bsd.c
+++ b/lib/tsocket/tsocket_bsd.c
@@ -1248,7 +1248,7 @@ static int tdgram_bsd_dgram_socket(const struct tsocket_address *local,
bsds->fd = fd;
talloc_set_destructor(bsds, tdgram_bsd_destructor);
-#ifdef HAVE_IPV6
+#if defined(HAVE_IPV6) && defined(IPV6_V6ONLY)
if (do_ipv6only) {
int val = 1;
@@ -2089,7 +2089,7 @@ static struct tevent_req * tstream_bsd_connect_send(TALLOC_CTX *mem_ctx,
goto post;
}
-#ifdef HAVE_IPV6
+#if defined(HAVE_IPV6) && defined(IPV6_V6ONLY)
if (do_ipv6only) {
int val = 1;