aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-03-25 23:46:07 +0800
committermiwi <miwi@FreeBSD.org>2009-03-25 23:46:07 +0800
commit17a948f6ff65f926a9162d2611cf8ce09affd6a9 (patch)
tree2a4f7d830dbede42025af7c45a7953445d454da1 /dns
parentad340b1eb33dfbfea593cdfc1b1b2d2e69e83601 (diff)
downloadfreebsd-ports-graphics-17a948f6ff65f926a9162d2611cf8ce09affd6a9.tar.gz
freebsd-ports-graphics-17a948f6ff65f926a9162d2611cf8ce09affd6a9.tar.zst
freebsd-ports-graphics-17a948f6ff65f926a9162d2611cf8ce09affd6a9.zip
- Fix build after addition of getdelim() and strndup()
PR: 133053 Submitted by: David Schultz <das@freebsd.org>
Diffstat (limited to 'dns')
-rw-r--r--dns/fastresolve/files/patch-dns-terror_getline.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/dns/fastresolve/files/patch-dns-terror_getline.c b/dns/fastresolve/files/patch-dns-terror_getline.c
new file mode 100644
index 00000000000..fa273a133c3
--- /dev/null
+++ b/dns/fastresolve/files/patch-dns-terror_getline.c
@@ -0,0 +1,24 @@
+--- dns-terror/getline.c.orig 2009-03-25 02:34:45.000000000 -0400
++++ dns-terror/getline.c 2009-03-25 02:38:48.000000000 -0400
+@@ -26,6 +26,7 @@
+ is defined. */
+ #define _GNU_SOURCE 1
+ #include <stdio.h>
++#include <sys/param.h>
+ #include <sys/types.h>
+
+ #if defined __GNU_LIBRARY__ && HAVE_GETDELIM
+@@ -134,6 +135,7 @@
+ return ret;
+ }
+
++#if __FreeBSD_version < 800067
+ int
+ getline (lineptr, n, stream)
+ char **lineptr;
+@@ -152,4 +154,5 @@
+ {
+ return getstr (lineptr, n, stream, delimiter, 0);
+ }
++#endif /* __FreeBSD_version < 800067 */
+ #endif