summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-04-23 10:53:10 +0200
committerDarren Tucker <dtucker@zip.com.au>2004-04-23 10:53:10 +0200
commit5bb140019c1fc16ddd66cf8408f2489fd5db03cb (patch)
tree1e0aa16b8f597179c8d8bb29498c21cb2d07a97f
parent - (djm) Update config.guess and config.sub to autoconf-2.59 versions; ok tim@ (diff)
downloadopenssh-5bb140019c1fc16ddd66cf8408f2489fd5db03cb.tar.xz
openssh-5bb140019c1fc16ddd66cf8408f2489fd5db03cb.zip
- (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@
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac4
-rw-r--r--openbsd-compat/getrrsetbyname.c4
3 files changed, 13 insertions, 2 deletions
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 <termios.h>]
)
+AC_CHECK_DECLS(h_errno, , ,[#include <netdb.h>])
+
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;