X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8f694072a524ab0f7edc4c3402fb5fc41ecbfa5e..7067b0aa2800bec29f14f8db8570c21eb1b6c224:/lib/inet_pton.c diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 6fe8020f..e8248687 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -15,15 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = - "$Id$"; -#endif /* LIBC_SCCS and not lint */ - -#include - -#include -#include +#include "rsync.h" #define NS_INT16SZ 2 #define NS_INADDRSZ 4 @@ -57,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); @@ -129,6 +123,7 @@ inet_pton4(src, dst) * author: * Paul Vixie, 1996. */ +#ifdef INET6 static int inet_pton6(src, dst) const char *src; @@ -213,3 +208,4 @@ inet_pton6(src, dst) memcpy(dst, tmp, NS_IN6ADDRSZ); return (1); } +#endif