summaryrefslogtreecommitdiff
path: root/mail/thunderbird17/patches/patch-directory_c-sdk_ldap_include_portable.h
blob: 314a1df15050c501ad7194a2d9ef053c90fc0535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-directory_c-sdk_ldap_include_portable.h,v 1.1 2013/11/13 13:27:45 ryoon Exp $

--- ldap/sdks/c-sdk/ldap/include/portable.h.orig	2012-08-25 00:31:56.000000000 +0000
+++ ldap/sdks/c-sdk/ldap/include/portable.h
@@ -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(__OpenBSD__) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
+#if ( defined( SYSV ) || defined( NETBSD ) || defined(DRAGONFLY) || defined( FREEBSD ) || defined(__OpenBSD__) || 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