From 7f5828f0fba0172baacebf9f75594ab222db0159 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 4 Jul 2000 08:44:03 +0000 Subject: 12149: guard against undefined h_errno in zftp --- configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.in') 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 ], 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 --------------- -- cgit 1.4.1