mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
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
This commit is contained in:
parent
67ef65a234
commit
15cebf38c1
@ -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, '%');
|
||||
|
Loading…
x
Reference in New Issue
Block a user