$OpenBSD: patch-iris_src_jdns_jdns_sys_c,v 1.2 2013/10/09 16:52:24 shadchin Exp $
--- iris/src/jdns/jdns_sys.c.orig	Thu Oct  4 06:53:09 2012
+++ iris/src/jdns/jdns_sys.c	Sun Jul 14 21:45:39 2013
@@ -752,6 +752,7 @@ static jdns_dnsparams_t *dnsparams_get_unixsys()
 	if(n == -1)
 		return params;
 
+#ifndef JDNS_OS_OPENBSD
 	// nameservers - ipv6
 	for(n = 0; n < MAXNS && n < RESVAR._u._ext.nscount; ++n)
 	{
@@ -775,6 +776,7 @@ static jdns_dnsparams_t *dnsparams_get_unixsys()
 		jdns_dnsparams_append_nameserver(params, addr, JDNS_UNICAST_PORT);
 		jdns_address_delete(addr);
 	}
+#endif
 
 	// nameservers - ipv4
 	for(n = 0; n < MAXNS && n < RESVAR.nscount; ++n)
@@ -829,6 +831,9 @@ static jdns_dnsparams_t *dnsparams_get_unix()
 {
 	jdns_dnsparams_t *params;
 
+#if defined(JDNS_OS_OPENBSD)
+	params = dnsparams_get_unixfiles();
+#else
 	// prefer system calls over files
 	params = dnsparams_get_unixsys();
 	if(params->nameservers->count == 0)
@@ -836,6 +841,7 @@ static jdns_dnsparams_t *dnsparams_get_unix()
 		jdns_dnsparams_delete(params);
 		params = dnsparams_get_unixfiles();
 	}
+#endif
 
 	apply_hosts_file(params, "/etc/hosts");
 
