Update to 2.9
[pkgsrcv2.git] / www / seamonkey / patches / patch-directory_c-sdk_ldap_include_portable.h
1 $NetBSD$
2
3 --- ldap/sdks/c-sdk/ldap/include/portable.h.orig        2012-04-23 06:28:48.000000000 +0000
4 +++ ldap/sdks/c-sdk/ldap/include/portable.h
5 @@ -122,8 +122,11 @@
6   * some systems don't have the BSD re_comp and re_exec routines
7   */
8  #ifndef NEED_BSDREGEX
9 -#if ( defined( SYSV ) || defined( NETBSD ) || defined( FREEBSD ) || defined(__OpenBSD__) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
10 +#if ( defined( SYSV ) || defined( NETBSD ) || defined(DRAGONFLY) || defined( FREEBSD ) || defined(__OpenBSD__) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
11  #define NEED_BSDREGEX
12 +/* there are conflicting prototypes in unistd.h on DragonFly */
13 +#define re_comp ldap_compat_re_comp
14 +#define re_exec ldap_compat_re_exec
15  #endif
16  #endif
17