summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-02-26 18:45:19 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-03 18:22:48 +0100
commit9fa4711e364e9aa779d6b8d12220bbb63dbb1f3d (patch)
treeebc79b31b75241d0cf16de5c60d194cfcda00628 /libc/inet/rpc
parenta82ba03b6ff449bdfdae4ad360c2ab59bda09ef4 (diff)
guard IPv6 stuff
disable IPv6 related stuff if feature is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/sa_len.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/inet/rpc/sa_len.c b/libc/inet/rpc/sa_len.c
index 3b37eba44..5f258db1f 100644
--- a/libc/inet/rpc/sa_len.c
+++ b/libc/inet/rpc/sa_len.c
@@ -52,10 +52,14 @@ int __libc_sa_len (sa_family_t af)
#endif
case AF_INET:
return sizeof (struct sockaddr_in);
+#ifdef __UCLIBC_HAS_IPV6__
case AF_INET6:
return sizeof (struct sockaddr_in6);
+#endif
+#if 0
case AF_IPX:
return sizeof (struct sockaddr_ipx);
+#endif
case AF_LOCAL:
return sizeof (struct sockaddr_un);
}