diff options
author | tnn <tnn@pkgsrc.org> | 2010-07-21 11:48:05 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2010-07-21 11:48:05 +0000 |
commit | 6d67c7b4222948788f418ce01fd404d6151286a7 (patch) | |
tree | 4958629b9a4cf8502e25050427f3d3af084f97f5 /www/seamonkey/patches | |
parent | 5ad0feb24a3863fa8e9d5f2a1d6f7ff94244b085 (diff) | |
download | pkgsrc-6d67c7b4222948788f418ce01fd404d6151286a7.tar.gz |
Fix undefined reference to re_comp/re_exec on dragonfly.
Reported by Francois Tigeot.
Diffstat (limited to 'www/seamonkey/patches')
-rw-r--r-- | www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h b/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h index c83af2d9b9e..0156efaf5ad 100644 --- a/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h +++ b/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h @@ -1,11 +1,24 @@ -$NetBSD: patch-directory_c-sdk_ldap_include_portable.h,v 1.2 2010/07/12 13:57:29 tnn Exp $ +$NetBSD: patch-directory_c-sdk_ldap_include_portable.h,v 1.3 2010/07/21 11:48:05 tnn Exp $ Add DragonFly support. https://bugzilla.mozilla.org/show_bug.cgi?id=577298 --- directory/c-sdk/ldap/include/portable.h.orig 2006-10-03 20:43:40.000000000 +0000 +++ directory/c-sdk/ldap/include/portable.h -@@ -295,7 +295,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP +@@ -122,8 +122,11 @@ + * some systems don't have the BSD re_comp and re_exec routines + */ + #ifndef NEED_BSDREGEX +-#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined( linux ) || defined( DARWIN )) && !defined(sgi) ++#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined(DRAGONFLY) || defined( linux ) || defined( DARWIN )) && !defined(sgi) + #define NEED_BSDREGEX ++/* there are conflicting prototypes in unistd.h on DragonFly */ ++#define re_comp ldap_compat_re_comp ++#define re_exec ldap_compat_re_exec + #endif + #endif + +@@ -295,7 +298,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP #elif defined(HPUX10) #define GETHOSTBYNAME_BUF_T struct hostent_data #define GETHOSTBYNAME( n, r, b, l, e ) nsldapi_compat_gethostbyname_r( n, r, (char *)&b, l, e ) @@ -14,7 +27,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=577298 typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE]; #define GETHOSTBYNAME_BUF_T GETHOSTBYNAME_buf_t #define GETHOSTBYNAME( n, r, b, l, rp, e ) gethostbyname_r( n, r, b, l, rp, e ) -@@ -317,7 +317,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP +@@ -317,7 +320,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP || defined(OSF1V4) || defined(AIX) || defined(UnixWare) \ || defined(hpux) || defined(HPUX11) || defined(NETBSD) \ || defined(IRIX6) || defined(FREEBSD) || defined(VMS) \ |