apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject apr-ldap on VC6 (was Re: misc/win32/rand.c include order change breaking VC6 build)
Date Tue, 01 May 2007 17:00:03 GMT

On May 1, 2007, at 9:48 AM, Davi Arnaut wrote:
> A newer ldap toolkit is required, but you can also disable ldap  
> support.
>

 From a superficial review, it seems the only deficiency in the VC6  
header files is a lack of definitions for LDAP_VENDOR_NAME and  
LDAP_VERSION_MAX.  The following will allow apr_util to build with  
VC6 with ldap without needing to use a Platform SDK update.  Maybe  
I'm missing something however.

Index: include/apr_ldap.hw
===================================================================
--- include/apr_ldap.hw (revision 534087)
+++ include/apr_ldap.hw (working copy)
@@ -86,7 +86,17 @@
#define LDAPS_PORT 636  /* ldaps:/// default LDAP over TLS port */
#endif

+#if !defined(LDAP_VENDOR_NAME)
+#define LDAP_VENDOR_NAME          "Microsoft Corporation."
+#endif

+#if !defined(LDAP_VERSION_MAX)
+#if defined(LDAP_VERSION3)
+#define LDAP_VERSION_MAX 3
+#endif
+#endif
+
+
/* Note: Macros defining const casting has been removed in APR v1.0,
   * pending real support for LDAP v2.0 toolkits.
   *




Mime
View raw message