]> git.sur5r.net Git - openldap/commitdiff
Silence stupid MUTEX_FIRSTCREATE warnings
authorHoward Chu <hyc@openldap.org>
Tue, 11 Jan 2011 21:34:55 +0000 (21:34 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Jan 2011 21:34:55 +0000 (21:34 +0000)
libraries/libldap/init.c
libraries/libldap/ldap-int.h

index 06b2c022878bf55356a40edf6223c2aa98973b4d..9ad18bdffb261a11ed69a49b58b0a590a8076024 100644 (file)
@@ -510,7 +510,9 @@ ldap_int_destroy_global_options(void)
  */
 void ldap_int_initialize_global_options( struct ldapoptions *gopts, int *dbglvl )
 {
+#ifdef LDAP_R_COMPILE
        LDAP_PVT_MUTEX_FIRSTCREATE(gopts->ldo_mutex);
+#endif
        LDAP_MUTEX_LOCK( &gopts->ldo_mutex );
        if (gopts->ldo_valid == LDAP_INITIALIZED) {
                /* someone else got here first */
index 545e0e3c87f54129324b3bbd1b83131481643538..c1866b325a3c9da283ea90faad76a9126f75cbe1 100644 (file)
@@ -189,7 +189,6 @@ struct ldapoptions {
 #define LDAP_LDO_MUTEX_NULLARG , LDAP_PVT_MUTEX_NULL
 #else
 #define LDAP_LDO_MUTEX_NULLARG
-#define LDAP_PVT_MUTEX_FIRSTCREATE(m)  ((void) 0)
 #endif
 
 #ifdef LDAP_CONNECTIONLESS