- (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@
This commit is contained in:
Darren Tucker 2004-04-23 18:53:10 +10:00
parent 752e4e603f
commit 5bb140019c
3 changed files with 13 additions and 2 deletions

View File

@ -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 20040421
- (djm) Update config.guess and config.sub to autoconf-2.59 versions; ok tim@ - (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) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (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 $

View File

@ -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 # Copyright (c) 1999-2004 Damien Miller
# #
@ -860,6 +860,8 @@ AC_CHECK_DECL(tcsendbreak,
[#include <termios.h>] [#include <termios.h>]
) )
AC_CHECK_DECLS(h_errno, , ,[#include <netdb.h>])
AC_CHECK_FUNCS(setresuid, [ AC_CHECK_FUNCS(setresuid, [
dnl Some platorms have setresuid that isn't implemented, test for this dnl Some platorms have setresuid that isn't implemented, test for this
AC_MSG_CHECKING(if setresuid seems to work) AC_MSG_CHECKING(if setresuid seems to work)

View File

@ -53,6 +53,10 @@
#define ANSWER_BUFFER_SIZE 1024*64 #define ANSWER_BUFFER_SIZE 1024*64
#if !HAVE_DECL_H_ERROR
extern int h_errno;
#endif
struct dns_query { struct dns_query {
char *name; char *name;
u_int16_t type; u_int16_t type;