diff options
author | tron <tron@pkgsrc.org> | 2013-03-09 10:25:28 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2013-03-09 10:25:28 +0000 |
commit | 09e56378e40eb767dacddca69bd112bb8d7555fd (patch) | |
tree | 11b3b421135f70a0333460f4a2efc4a68db5f98b /net | |
parent | ee607da633af6ba5c1d08a01ddfc015dc233588e (diff) | |
download | pkgsrc-09e56378e40eb767dacddca69bd112bb8d7555fd.tar.gz |
Fix build under Mac OS X.
Diffstat (limited to 'net')
-rw-r--r-- | net/mtr/distinfo | 4 | ||||
-rw-r--r-- | net/mtr/patches/patch-asn.c | 16 | ||||
-rw-r--r-- | net/mtr/patches/patch-dns.h | 30 |
3 files changed, 49 insertions, 1 deletions
diff --git a/net/mtr/distinfo b/net/mtr/distinfo index 74bd3d86bce..bfd3426318c 100644 --- a/net/mtr/distinfo +++ b/net/mtr/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.35 2013/03/08 14:33:54 wiz Exp $ +$NetBSD: distinfo,v 1.36 2013/03/09 10:25:28 tron Exp $ SHA1 (mtr-0.84.tar.gz) = 7c8dc6a0412edaf32ebc94c8f765b14ae59e6163 RMD160 (mtr-0.84.tar.gz) = 784eaea461e15080c0546e08a0907ca16949de40 Size (mtr-0.84.tar.gz) = 286912 bytes +SHA1 (patch-asn.c) = 2491e791d393e30ade331337f9818775ece02295 +SHA1 (patch-dns.h) = 80b939a566180bfba72a1df82cf790f773b1c7d4 diff --git a/net/mtr/patches/patch-asn.c b/net/mtr/patches/patch-asn.c new file mode 100644 index 00000000000..07a74bf3110 --- /dev/null +++ b/net/mtr/patches/patch-asn.c @@ -0,0 +1,16 @@ +$NetBSD: patch-asn.c,v 1.1 2013/03/09 10:25:28 tron Exp $ + +Fix build under Mac OS X. Based on this commit: + +https://github.com/mackyle/mtr/commit/8348cfdc39694f0ada686b8277b75b3f72c6a47f + +--- asn.c.orig 2013-02-23 15:13:40.000000000 +0000 ++++ asn.c 2013-03-09 09:48:21.000000000 +0000 +@@ -27,6 +27,7 @@ + #include <stdlib.h> + #include <sys/types.h> + ++#define BIND_8_COMPAT + #include <arpa/nameser.h> + #include <netdb.h> + #include <netinet/in.h> diff --git a/net/mtr/patches/patch-dns.h b/net/mtr/patches/patch-dns.h new file mode 100644 index 00000000000..9ebe43f3067 --- /dev/null +++ b/net/mtr/patches/patch-dns.h @@ -0,0 +1,30 @@ +$NetBSD: patch-dns.h,v 1.1 2013/03/09 10:25:28 tron Exp $ + +Fix build under Mac OS X. Based on this commit: + +https://github.com/mackyle/mtr/commit/8348cfdc39694f0ada686b8277b75b3f72c6a47f + +--- dns.h.orig 2013-02-23 15:13:40.000000000 +0000 ++++ dns.h 2013-03-09 10:21:42.000000000 +0000 +@@ -17,7 +17,7 @@ + */ + + #include <netinet/in.h> +- ++#include <resolv.h> + + /* Prototypes for dns.c */ + +@@ -27,10 +27,10 @@ + #ifdef ENABLE_IPV6 + int dns_waitfd6(void); + void dns_ack6(void); +-#ifdef BSD ++#if defined(BSD) || defined(__APPLE__) + /* __res_state_ext is missing on many (most?) BSD systems + - this should probably be handled by autoconf */ +-#ifndef __res_state_ext ++#if !defined(__res_state_ext) || defined(__APPLE__) + struct __res_state_ext { + union res_sockaddr_union nsaddrs[MAXNS]; + struct sort_list { |