summaryrefslogtreecommitdiff
path: root/net/mtr/patches
diff options
context:
space:
mode:
authorjklos <jklos@pkgsrc.org>2005-01-10 00:15:11 +0000
committerjklos <jklos@pkgsrc.org>2005-01-10 00:15:11 +0000
commitf0850f04f0dfa678c8dd8b62ca7102f7591c79b3 (patch)
tree92876e4712e2406999f171c1868a67cc0f7932fe /net/mtr/patches
parentca25e232012e9f7129bbf7d901a99df2a3ed50cc (diff)
downloadpkgsrc-f0850f04f0dfa678c8dd8b62ca7102f7591c79b3.tar.gz
Added fix for includes so mtr will compile on Mac OS X.
Diffstat (limited to 'net/mtr/patches')
-rw-r--r--net/mtr/patches/patch-ab27
1 files changed, 22 insertions, 5 deletions
diff --git a/net/mtr/patches/patch-ab b/net/mtr/patches/patch-ab
index aeb577bbe32..5016a5d3800 100644
--- a/net/mtr/patches/patch-ab
+++ b/net/mtr/patches/patch-ab
@@ -1,8 +1,25 @@
-$NetBSD: patch-ab,v 1.5 2004/10/27 16:18:31 wiz Exp $
-
---- dns.c.orig 2004-10-27 11:47:06.000000000 -0400
-+++ dns.c 2004-10-27 11:47:52.000000000 -0400
-@@ -814,9 +814,9 @@
+--- dns.c.orig Thu Aug 26 00:56:53 2004
++++ dns.c Sun Jan 9 16:06:08 2005
+@@ -32,9 +32,18 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
++
++#ifdef __APPLE__
++#include <arpa/nameser8_compat.h>
++#else
+ #include <arpa/nameser.h>
++#endif
+ #include <netdb.h>
++#ifdef __APPLE__
++#include <resolv8_compat.h>
++#else
+ #include <resolv.h>
++#endif
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <ctype.h>
+@@ -814,9 +823,9 @@
{
packetheader *hp;
int r,i;