git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14304fc
)
tsocket: fix the build without ipv6 support
author
Stefan Metzmacher
<metze@samba.org>
Thu, 16 Apr 2009 05:51:01 +0000
(07:51 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 16 Apr 2009 07:31:14 +0000
(09:31 +0200)
metze
lib/tsocket/tsocket_bsd.c
patch
|
blob
|
history
diff --git
a/lib/tsocket/tsocket_bsd.c
b/lib/tsocket/tsocket_bsd.c
index 87586e08e3c672b1a17d3ad6dda24e782c79fa42..29097bd987898a681112493e91df89881d5c0160 100644
(file)
--- a/
lib/tsocket/tsocket_bsd.c
+++ b/
lib/tsocket/tsocket_bsd.c
@@
-523,9
+523,11
@@
static char *tsocket_address_bsd_string(const struct tsocket_address *addr,
case AF_INET:
prefix = "ipv4";
break;
case AF_INET:
prefix = "ipv4";
break;
+#ifdef HAVE_IPV6
case AF_INET6:
prefix = "ipv6";
break;
case AF_INET6:
prefix = "ipv6";
break;
+#endif
default:
errno = EINVAL;
return NULL;
default:
errno = EINVAL;
return NULL;