summaryrefslogtreecommitdiff
path: root/security/dnssec-tools/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2013-04-01 12:21:54 +0000
committerjoerg <joerg>2013-04-01 12:21:54 +0000
commit6bff0f0e9431c68296ad713a12bbd8a75f4786a2 (patch)
tree1755f2af9d3a5a41adda88ec89c2af1c6ab3cda4 /security/dnssec-tools/patches
parentb5b61b0c416de7293547a1957ee904d07ba9b69b (diff)
downloadpkgsrc-6bff0f0e9431c68296ad713a12bbd8a75f4786a2.tar.gz
Use res_sym on NetBSD.
Diffstat (limited to 'security/dnssec-tools/patches')
-rw-r--r--security/dnssec-tools/patches/patch-validator_libsres_res__debug.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/dnssec-tools/patches/patch-validator_libsres_res__debug.c b/security/dnssec-tools/patches/patch-validator_libsres_res__debug.c
new file mode 100644
index 00000000000..0788793c4d0
--- /dev/null
+++ b/security/dnssec-tools/patches/patch-validator_libsres_res__debug.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-validator_libsres_res__debug.c,v 1.1 2013/04/01 12:21:54 joerg Exp $
+
+Nice rant BTW, but it doesn't match reality at least on NetBSD 6.
+
+--- validator/libsres/res_debug.c.orig 2013-03-31 20:34:36.000000000 +0000
++++ validator/libsres/res_debug.c
+@@ -319,7 +319,7 @@ p_fqname(const u_char * cp, const u_char
+ * And, for once, solaris has a better header than the rest, and has const
+ * char ptrs in res_sym.
+ */
+-#if (defined(__APPLE__) || defined(sun) || defined(__CYGWIN__) || defined(linux)) && !defined(ANDROID)
++#if (defined(__APPLE__) || defined(sun) || defined(__CYGWIN__) || defined(linux) || defined(__NetBSD__)) && !defined(ANDROID)
+ #define RES_SYM_TYPE res_sym
+ #else
+ struct res_sym_const {