- stevesk@cvs.openbsd.org 2006/07/12 22:28:52
     [auth-options.c canohost.c channels.c includes.h readconf.c servconf.c ssh-keyscan.c ssh.c sshconnect.c sshd.c]
     move #include <netdb.h> out of includes.h; ok djm@
diff --git a/dns.c b/dns.c
index 504b5d7..16954a6 100644
--- a/dns.c
+++ b/dns.c
@@ -30,7 +30,9 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <netdb.h>
+#if defined(HAVE_NETDB_H)
+# include <netdb.h>
+#endif
 
 #include "xmalloc.h"
 #include "key.h"