From 8f6ad301913dc5ddfda7823510c17b8ce61df51c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 9 Jul 2001 21:20:20 +0000 Subject: A patch from Michal Moskal to include partial IPV6 support. This adds things like gethostbyname2(). Off by defaut, of course, --- libc/inet/ntop.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/inet/ntop.c') diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c index 6d7e691cc..521c1de63 100644 --- a/libc/inet/ntop.c +++ b/libc/inet/ntop.c @@ -29,6 +29,13 @@ #include #include +#ifdef __UCLIBC_HAS_IPV6__ +#define INET_IPV6 +#define SPRINTF(a) sprintf a +#include +#endif + + /* * WARNING: Don't even consider trying to compile this on a system where * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. @@ -259,6 +266,7 @@ inet_pton6(src, dst) int ch, saw_xdigit; u_int val; + tp = memset(tmp, '\0', 16); endp = tp + 16; colonp = NULL; -- cgit v1.2.3