]> git.sur5r.net Git - openldap/commitdiff
Demonstrate how rdwr routines could be easily replaced.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 6 Jun 2000 21:20:38 +0000 (21:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 6 Jun 2000 21:20:38 +0000 (21:20 +0000)
Update comment with reference to publically available examples.

libraries/libldap_r/rdwr.c

index 85da7de0258824de59c92ac4554a4509c12fe341..66de1f9690173363ea1870c24016c5f7530d43b4 100644 (file)
@@ -7,13 +7,10 @@
 **
 ** Does not support cancellation nor does any status checking.
 */
-
-/********************************************************
- * Adapted from:
+/* Adapted from publically available examples for:
  *     "Programming with Posix Threads"
- *             by David R Butenhof
- *             Addison-Wesley 
- ********************************************************
+ *             by David R Butenhof, Addison-Wesley 
+ *             http://cseng.aw.com/bookpage.taf?ISBN=0-201-63392-2
  */
 
 #include "portable.h"
 
 #include "ldap_pvt_thread.h"
 
+/*
+ * implementations that provide their own compatible
+ * should define LDAP_THREAD_HAVE_RDWR in ldap_pvt_thread.h
+ */
+#ifndef LDAP_THREAD_HAVE_RDWR
+
 int 
 ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
 {
@@ -260,3 +263,5 @@ int ldap_pvt_thread_rdwr_active(ldap_pvt_thread_rdwr_t *rw)
 }
 
 #endif /* LDAP_DEBUG */
+
+#endif /* LDAP_THREAD_HAVE_RDWR */