From 5bb140019c1fc16ddd66cf8408f2489fd5db03cb Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 23 Apr 2004 18:53:10 +1000 Subject: - (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@ --- openbsd-compat/getrrsetbyname.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsd-compat/getrrsetbyname.c') 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; -- cgit v1.2.3 From cc2685577b71e6b4722410e85305cf1d8e317166 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 13 May 2004 20:10:38 +1000 Subject: - (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(-) (limited to 'openbsd-compat/getrrsetbyname.c') 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 -- cgit v1.2.3 From 991d95f4125ca1ce40bb7d469b69b1e174b78967 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 13 May 2004 20:24:10 +1000 Subject: - (dtucker) [openbsd-compat/getrrsetbyname.c] Fix typo too: HAVE_DECL_H_ERROR -> HAVE_DECL_H_ERRNO. --- ChangeLog | 4 +++- openbsd-compat/getrrsetbyname.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'openbsd-compat/getrrsetbyname.c') diff --git a/ChangeLog b/ChangeLog index 15016875c..32f964d47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -40,6 +40,8 @@ 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. + - (dtucker) [openbsd-compat/getrrsetbyname.c] Fix typo too: HAVE_DECL_H_ERROR + -> HAVE_DECL_H_ERRNO. 20040502 - (dtucker) OpenBSD CVS Sync @@ -1116,4 +1118,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.3354 2004/05/13 10:10:38 dtucker Exp $ +$Id: ChangeLog,v 1.3355 2004/05/13 10:24:10 dtucker Exp $ diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 154cc29b0..660427c1f 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -53,7 +53,7 @@ #define ANSWER_BUFFER_SIZE 1024*64 -#if defined(HAVE_DECL_H_ERROR) && !HAVE_DECL_H_ERROR +#if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO extern int h_errno; #endif -- cgit v1.2.3