summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-06 21:37:46 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-07 03:09:49 +0200
commit15cebf38c173db0d255010528eaff11e8aa4f258 (patch)
treedc479efa44fb5a72d032ada1f2a1ed4ab40d918d /lib
parent67ef65a234ea01101e79e8f891c1049913a6ff81 (diff)
downloadsamba-15cebf38c173db0d255010528eaff11e8aa4f258.tar.gz
samba-15cebf38c173db0d255010528eaff11e8aa4f258.tar.bz2
samba-15cebf38c173db0d255010528eaff11e8aa4f258.zip
util: fix build on platforms without IPv6 support
something like this on World IPv6 Day II ... ;-) Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 7 03:09:49 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_net.c b/lib/util/util_net.c
index 36b3fcbc4a..83afda4c78 100644
--- a/lib/util/util_net.c
+++ b/lib/util/util_net.c
@@ -93,10 +93,10 @@ static bool interpret_string_addr_pref(struct sockaddr_storage *pss,
bool prefer_ipv4)
{
struct addrinfo *res = NULL;
+ int int_flags;
#if defined(HAVE_IPV6)
char addr[INET6_ADDRSTRLEN];
unsigned int scope_id = 0;
- int int_flags;
if (strchr_m(str, ':')) {
char *p = strchr_m(str, '%');