]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/util-int.c
Add comments to UTF-8 declarations.
[openldap] / libraries / libldap / util-int.c
index cfac8e336f25a2ce8dc59826603203d840b6af26..158f23472f27eaa5748f3117e1a651a957140e6a 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -22,7 +23,7 @@
 
 #include "portable.h"
 
-#include <stdlib.h>
+#include <ac/stdlib.h>
 
 #include <ac/errno.h>
 #include <ac/socket.h>
@@ -63,6 +64,9 @@
 # ifndef HAVE_GETHOSTBYADDR_R
        static ldap_pvt_thread_mutex_t ldap_int_gethostbyaddr_mutex;
 # endif
+# ifdef HAVE_RES_SEARCH
+       ldap_pvt_thread_mutex_t ldap_int_resolv_mutex;
+# endif
 #endif /* LDAP_R_COMPILE */
 
 char *ldap_pvt_ctime( const time_t *tp, char *buf )
@@ -273,6 +277,10 @@ void ldap_int_utils_init( void )
        ldap_pvt_thread_mutex_init( &ldap_int_gethostbyaddr_mutex );
 #endif
 
+#ifdef HAVE_RES_SEARCH
+       ldap_pvt_thread_mutex_init( &ldap_int_resolv_mutex );
+#endif
+
        /* call other module init functions here... */
 #endif
 }