diff --git a/ChangeLog b/ChangeLog index 1c746f780..b4a4d715c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +20040423 + - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Declare h_errno + as extern int if not already declared. Fixes compile errors on old SCO + platforms. ok tim@ + 20040421 - (djm) Update config.guess and config.sub to autoconf-2.59 versions; ok tim@ @@ -1032,4 +1037,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3330 2004/04/21 02:29:13 djm Exp $ +$Id: ChangeLog,v 1.3331 2004/04/23 08:53:10 dtucker Exp $ diff --git a/configure.ac b/configure.ac index 3e1ee8aae..053204d74 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.215 2004/04/20 10:28:56 djm Exp $ +# $Id: configure.ac,v 1.216 2004/04/23 08:53:10 dtucker Exp $ # # Copyright (c) 1999-2004 Damien Miller # @@ -860,6 +860,8 @@ AC_CHECK_DECL(tcsendbreak, [#include ] ) +AC_CHECK_DECLS(h_errno, , ,[#include ]) + AC_CHECK_FUNCS(setresuid, [ dnl Some platorms have setresuid that isn't implemented, test for this AC_MSG_CHECKING(if setresuid seems to work) diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 66d18142e..13125e11e 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -53,6 +53,10 @@ #define ANSWER_BUFFER_SIZE 1024*64 +#if !HAVE_DECL_H_ERROR +extern int h_errno; +#endif + struct dns_query { char *name; u_int16_t type;