diff options
author | riz <riz@pkgsrc.org> | 2011-08-29 03:34:39 +0000 |
---|---|---|
committer | riz <riz@pkgsrc.org> | 2011-08-29 03:34:39 +0000 |
commit | 02e513271808e1534ff2dc362b56dd32b62e9b75 (patch) | |
tree | fc49c06c727947775a9478d2a906a4b8b5ba73a4 /net/mDNSResponder | |
parent | 37d55b1e0ded03ebec116a3f42fcdb645386b980 (diff) | |
download | pkgsrc-02e513271808e1534ff2dc362b56dd32b62e9b75.tar.gz |
Allow mDNSResponder to build on FreeBSD 8.2.
Diffstat (limited to 'net/mDNSResponder')
-rw-r--r-- | net/mDNSResponder/distinfo | 4 | ||||
-rw-r--r-- | net/mDNSResponder/patches/patch-ae | 34 |
2 files changed, 26 insertions, 12 deletions
diff --git a/net/mDNSResponder/distinfo b/net/mDNSResponder/distinfo index ca3ab70577d..cbf0fbe121c 100644 --- a/net/mDNSResponder/distinfo +++ b/net/mDNSResponder/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2011/06/03 19:30:39 shattered Exp $ +$NetBSD: distinfo,v 1.28 2011/08/29 03:34:39 riz Exp $ SHA1 (mDNSResponder-258.14.tar.gz) = 2a34794ff9a5184ce1e57ccea4001b5af6635f7b RMD160 (mDNSResponder-258.14.tar.gz) = fbd9dcfa84dbeb9de379066958a0b509af074dbc @@ -8,5 +8,5 @@ SHA1 (patch-aa) = 3f31f10ab6bf0d3ec72b56791cc4db5f24bfeb0b SHA1 (patch-ab) = 8567d3a9849377fdfd1fd98f1b0dd164561bb6c9 SHA1 (patch-ac) = 3fb065c49ed434f031ea29214ec4140b24f8da64 SHA1 (patch-ad) = 612390897ad2f395ceb7394b644f977c4858d6cc -SHA1 (patch-ae) = b22eeebf70abb26f7b69374fb5a0dd9720c3957b +SHA1 (patch-ae) = 551ddcaa508a2e77361a3b683f9de841ca4957b4 SHA1 (patch-af) = bce933daa008f081b72c5d509e84704be13360dc diff --git a/net/mDNSResponder/patches/patch-ae b/net/mDNSResponder/patches/patch-ae index a1a7572d18d..0bf3d0826f3 100644 --- a/net/mDNSResponder/patches/patch-ae +++ b/net/mDNSResponder/patches/patch-ae @@ -1,8 +1,6 @@ -$NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $ - ---- mDNSShared/CommonServices.h.orig 2009-08-11 01:13:47.000000000 +0000 -+++ mDNSShared/CommonServices.h -@@ -64,6 +64,24 @@ +--- ./mDNSShared/CommonServices.h.orig 2009-08-11 01:13:47.000000000 +0000 ++++ ./mDNSShared/CommonServices.h 2011-08-29 03:29:36.000000000 +0000 +@@ -64,6 +64,32 @@ #endif #endif @@ -16,6 +14,14 @@ $NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $ + #endif +#endif + ++#if( !defined( TARGET_OS_FREEBSD ) ) ++ #if( defined( __FreeBSD__ ) ) ++ #define TARGET_OS_FREEBSD 1 ++ #else ++ #define TARGET_OS_FREEBSD 0 ++ #endif ++#endif ++ +#if( !defined( TARGET_OS_DRAGONFLY ) ) + #if( defined( __DragonFly__ ) ) + #define TARGET_OS_DRAGONFLY 1 @@ -27,16 +33,16 @@ $NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $ // Solaris #if( !defined( TARGET_OS_SOLARIS ) ) -@@ -90,7 +108,7 @@ +@@ -90,7 +116,7 @@ // No predefined macro for VxWorks so just assume VxWorks if nothing else is set. - #if( !macintosh && !__MACH__ && !defined( __linux__ ) && !defined ( __SVR4 ) && !defined ( __sun ) && !defined( __PALMOS_TRAPS__ ) && !defined( __PALMOS_ARMLET__ ) && !defined( _WIN32 ) ) -+ #if( !macintosh && !__MACH__ && !defined( __linux__ ) && !defined ( __SVR4 ) && !defined ( __sun ) && !defined( __PALMOS_TRAPS__ ) && !defined( __PALMOS_ARMLET__ ) && !defined( _WIN32 ) && !defined(__NetBSD__) && !defined(__DragonFly__)) ++ #if( !macintosh && !__MACH__ && !defined( __linux__ ) && !defined ( __SVR4 ) && !defined ( __sun ) && !defined( __PALMOS_TRAPS__ ) && !defined( __PALMOS_ARMLET__ ) && !defined( _WIN32 ) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__)) #define TARGET_OS_VXWORKS 1 #else #define TARGET_OS_VXWORKS 0 -@@ -186,6 +204,19 @@ +@@ -186,6 +212,27 @@ #include <stdint.h> #include <arpa/inet.h> @@ -46,6 +52,14 @@ $NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $ + + #include <arpa/inet.h> + ++#elif ( TARGET_OS_FREEBSD ) ++ ++ // FreeBSD ++ ++ #include <stdint.h> ++ #include <arpa/inet.h> ++ #include <sys/socket.h> // for AF_INET6 definition ++ +#elif ( TARGET_OS_DRAGONFLY ) + + // DragonFly @@ -56,12 +70,12 @@ $NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $ #elif( TARGET_OS_SOLARIS ) // Solaris -@@ -455,7 +486,7 @@ +@@ -455,7 +502,7 @@ // - Windows #if( TARGET_LANGUAGE_C_LIKE ) - #if( !defined(_SSIZE_T) && ( TARGET_OS_WIN32 || !defined( _BSD_SSIZE_T_DEFINED_ ) ) && !TARGET_OS_LINUX && !TARGET_OS_VXWORKS && !TARGET_OS_MAC) -+ #if( !defined(_SSIZE_T) && ( TARGET_OS_WIN32 || !defined( _BSD_SSIZE_T_DEFINED_ ) ) && !TARGET_OS_LINUX && !TARGET_OS_VXWORKS && !TARGET_OS_MAC && !TARGET_OS_NETBSD && !TARGET_OS_DRAGONFLY) ++ #if( !defined(_SSIZE_T) && ( TARGET_OS_WIN32 || !defined( _BSD_SSIZE_T_DEFINED_ ) ) && !TARGET_OS_LINUX && !TARGET_OS_VXWORKS && !TARGET_OS_MAC && !TARGET_OS_NETBSD && !TARGET_OS_DRAGONFLY && !TARGET_OS_FREEBSD) typedef int ssize_t; #endif #endif |