$OpenBSD: patch-configure,v 1.10 2014/01/02 13:04:34 landry Exp $
--- configure.orig	Tue Dec 31 21:40:21 2013
+++ configure	Tue Dec 31 21:42:26 2013
@@ -344,6 +344,24 @@ detect_resolv_dynamic()
 	FreeBSD )
 		# In FreeBSD res_* routines are present in libc.so
 		LIBRESOLV=;;
+	OpenBSD )
+		# In OpenBSD res_* routines are present in libc.so,
+		# and there are no ns_*() functions, thus the special
+		# RESOLV_TESTCODE.
+		LIBRESOLV=
+		RESOLV_TESTCODE='
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h> 
+
+int main()
+{
+       res_query( NULL, 0, 0, NULL, 0 );
+       dn_expand( NULL, NULL, NULL, NULL, 0 );
+}
+'
+;;
+
 	* )
 		LIBRESOLV=-lresolv;;
 	esac
