From b30915b56a5c678665a106dc6718dce11b1959ac Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 30 Nov 1999 18:16:49 +0000 Subject: zsh-workers/8826 --- Src/Modules/zftp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Src') diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index b334c878a..c58731126 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -125,6 +125,22 @@ inet_ntop(int af, void const *cp, char *buf, size_t len) /**/ #ifndef HAVE_INET_PTON +/**/ +# ifndef HAVE_INET_ATON + +# ifndef INADDR_NONE +# define INADDR_NONE 0xffffffffUL +# endif + +/**/ +static int inet_aton(char const *src, struct in_addr *dst) +{ + return (dst->s_addr = inet_addr(src)) != INADDR_NONE; +} + +/**/ +# endif /* !HAVE_INET_ATON */ + /**/ static int inet_pton(int af, char const *src, void *dst) -- cgit 1.4.1