diff options
Diffstat (limited to 'libc/inet/ntop.c')
-rw-r--r-- | libc/inet/ntop.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdio.h> #include <string.h> +#ifdef __UCLIBC_HAS_IPV6__ +#define INET_IPV6 +#define SPRINTF(a) sprintf a +#include <ctype.h> +#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; |