aboutsummaryrefslogtreecommitdiff
path: root/net/sipxtacklib
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-09-17 09:21:03 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-09-17 09:21:03 +0000
commitee768a737dce87f28a23ad4a500b831b8201bd09 (patch)
tree69b6a913d60ca27aaa76564ba1d80720f3b33944 /net/sipxtacklib
parent647baa30f82abd5a35aac3aee933b9d8182b3a2b (diff)
downloadports-ee768a737dce87f28a23ad4a500b831b8201bd09.tar.gz
ports-ee768a737dce87f28a23ad4a500b831b8201bd09.zip
Notes
Diffstat (limited to 'net/sipxtacklib')
-rw-r--r--net/sipxtacklib/files/patch-src_resparse_res_data.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/sipxtacklib/files/patch-src_resparse_res_data.c b/net/sipxtacklib/files/patch-src_resparse_res_data.c
new file mode 100644
index 000000000000..6d1613f146a2
--- /dev/null
+++ b/net/sipxtacklib/files/patch-src_resparse_res_data.c
@@ -0,0 +1,22 @@
+--- src/resparse/res_data.c.orig Wed Sep 5 14:44:28 2007
++++ src/resparse/res_data.c Wed Sep 5 14:46:36 2007
+@@ -20,6 +20,9 @@
+ #endif /* LIBC_SCCS and not lint */
+
+ #include <sys/types.h>
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #include <time.h>
+
+ /* Reordered includes and separated into win/vx --GAT */
+@@ -51,7 +54,8 @@
+
+ #include "resparse/res_config.h"
+
+-#ifndef __pingtel_on_posix__
++#if !defined(__pingtel_on_posix__) || (defined(__FreeBSD__) && __FreeBSD_version > 700040)
++/* libc _res_opcodes was removed from FreeBSD 7.x */
+ const char *_res_opcodes[] = {
+ "QUERY",
+ "IQUERY",