--- configure.orig	2006-03-14 07:59:56.000000000 +0300
+++ configure	2006-04-25 13:00:16.000000000 +0400
@@ -3716,6 +3716,8 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 $ac_includes_default
+#include <netinet/in.h>
+#include <arpa/nameser.h>
 #include <$ac_header>
 _ACEOF
 rm -f conftest.$ac_objext
