summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-07-04 08:44:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-07-04 08:44:03 +0000
commit7f5828f0fba0172baacebf9f75594ab222db0159 (patch)
tree982ccdc60aef30647c88972bf68a319d7a01f784 /Src/Modules
parent41404fb6c723ce4544de1b216df37c9da5119f59 (diff)
downloadzsh-7f5828f0fba0172baacebf9f75594ab222db0159.tar.gz
zsh-7f5828f0fba0172baacebf9f75594ab222db0159.tar.xz
zsh-7f5828f0fba0172baacebf9f75594ab222db0159.zip
12149: guard against undefined h_errno in zftp
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zftp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index b1aac07b8..e39994733 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -111,6 +111,10 @@ union zftp_sockaddr {
 #endif
 };
 
+#ifdef USE_LOCAL_H_ERRNO
+int h_errno;
+#endif
+
 /* We use the RFC 2553 interfaces.  If the functions don't exist in the library,
    simulate them. */