$NetBSD$

--- nanohttp.c.orig	2009-10-19 11:55:48.000000000 +0000
+++ nanohttp.c
@@ -65,8 +65,10 @@
 #include <strings.h>
 #endif
 #ifdef SUPPORT_IP6
+#ifdef HAVE_RESOLV_H
 #include <resolv.h>
 #endif
+#endif
 #ifdef HAVE_ZLIB_H
 #include <zlib.h>
 #endif
