-/* $OpenBSD: dns.c,v 1.18 2006/03/20 18:41:43 deraadt Exp $ */
+/* $OpenBSD: dns.c,v 1.20 2006/07/08 21:47:12 stevesk Exp $ */
/*
* Copyright (c) 2003 Wesley Griffin. All rights reserved.
#include "includes.h"
-#include <netdb.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#if defined(HAVE_NETDB_H)
+# include <netdb.h>
+#endif
#include "xmalloc.h"
#include "key.h"