From cc2685577b71e6b4722410e85305cf1d8e317166 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 13 May 2004 20:10:38 +1000 Subject: [PATCH] - (dtucker) [openbsd-compat/getrrsetbyname.c] Check that HAVE_DECL_H_ERROR is defined before using. --- ChangeLog | 4 +++- openbsd-compat/getrrsetbyname.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d00007853..15016875c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,8 @@ UsePAM section. Parts from djm@ and jmc@. - (dtucker) [auth-pam.c scard-opensc.c] Tinderbox says auth-pam.c uses readpass.h, grep says scard-opensc.c does too. Replace with misc.h. + - (dtucker) [openbsd-compat/getrrsetbyname.c] Check that HAVE_DECL_H_ERROR + is defined before using. 20040502 - (dtucker) OpenBSD CVS Sync @@ -1114,4 +1116,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.3353 2004/05/13 07:29:35 dtucker Exp $ +$Id: ChangeLog,v 1.3354 2004/05/13 10:10:38 dtucker Exp $ diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 13125e11e..154cc29b0 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -53,7 +53,7 @@ #define ANSWER_BUFFER_SIZE 1024*64 -#if !HAVE_DECL_H_ERROR +#if defined(HAVE_DECL_H_ERROR) && !HAVE_DECL_H_ERROR extern int h_errno; #endif