about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zftp.c16
1 files changed, 16 insertions, 0 deletions
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
@@ -126,6 +126,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)
 {