about summary refs log tree commit diff
path: root/configure.in
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 /configure.in
parent41404fb6c723ce4544de1b216df37c9da5119f59 (diff)
downloadzsh-7f5828f0fba0172baacebf9f75594ab222db0159.tar.gz
zsh-7f5828f0fba0172baacebf9f75594ab222db0159.tar.xz
zsh-7f5828f0fba0172baacebf9f75594ab222db0159.zip
12149: guard against undefined h_errno in zftp
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f4de01060..31903ea4d 100644
--- a/configure.in
+++ b/configure.in
@@ -816,6 +816,17 @@ zsh_STRUCT_MEMBER([
 #include <netinet/in.h>
 ], struct sockaddr_in6, sin6_scope_id)
 
+dnl Check for h_errno external variable
+AC_CACHE_CHECK(if we need our own h_errno,
+  zsh_cv_decl_h_errno_use_local,
+  [AC_TRY_LINK( ,[extern int h_errno; h_errno = 0;],
+  zsh_cv_decl_h_errno_use_local=no,
+  zsh_cv_decl_h_errno_use_local=yes)])
+
+if test $zsh_cv_decl_h_errno_use_local = yes; then
+  AC_DEFINE(USE_LOCAL_H_ERRNO)
+fi
+
 dnl ---------------
 dnl CHECK FUNCTIONS
 dnl ---------------