Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112e731
)
Protect AF_INET6 references with #ifdef INET6
author
Martin Pool
<mbp@samba.org>
Wed, 28 Nov 2001 00:36:32 +0000
(
00:36
+0000)
committer
Martin Pool
<mbp@samba.org>
Wed, 28 Nov 2001 00:36:32 +0000
(
00:36
+0000)
lib/inet_pton.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/inet_pton.c
b/lib/inet_pton.c
index
41884af
..
e824868
100644
(file)
--- a/
lib/inet_pton.c
+++ b/
lib/inet_pton.c
@@
-49,8
+49,10
@@
isc_net_pton(af, src, dst)
switch (af) {
case AF_INET:
return (inet_pton4(src, dst));
+#ifdef INET6
case AF_INET6:
return (inet_pton6(src, dst));
+#endif
default:
errno = EAFNOSUPPORT;
return (-1);
@@
-121,6
+123,7
@@
inet_pton4(src, dst)
* author:
* Paul Vixie, 1996.
*/
+#ifdef INET6
static int
inet_pton6(src, dst)
const char *src;
@@
-205,3
+208,4
@@
inet_pton6(src, dst)
memcpy(dst, tmp, NS_IN6ADDRSZ);
return (1);
}
+#endif