Index: configure.ac
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v
retrieving revision 1.214
diff -u -p -r1.214 configure.ac
--- configure.ac	17 Apr 2004 03:03:07 -0000	1.214
+++ configure.ac	18 Apr 2004 23:49:33 -0000
@@ -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)
Index: openbsd-compat/getrrsetbyname.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/getrrsetbyname.c,v
retrieving revision 1.9
diff -u -p -r1.9 getrrsetbyname.c
--- openbsd-compat/getrrsetbyname.c	24 Feb 2004 04:51:07 -0000	1.9
+++ openbsd-compat/getrrsetbyname.c	18 Apr 2004 23:40:17 -0000
@@ -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;
