]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/os-local.c
Avoid locale specific ctype routines.
[openldap] / libraries / libldap / os-local.c
index 6d45b2589a111fba9fb82edd9fff1e1e26482c76..5ad819eccf08d9df006f3a645e85cd24b337614a 100644 (file)
@@ -33,6 +33,7 @@
 #endif /* HAVE_IO_H */
 
 #include "ldap-int.h"
+#include "ldap_defaults.h"
 
 /* int ldap_int_tblsize = 0; */
 
@@ -191,7 +192,7 @@ ldap_connect_to_path(LDAP *ld, Sockbuf *sb, const char *path, int async)
        }
 
        if ( path == NULL || path[0] == '\0' ) {
-               path = "/tmp/.ldap-sock";
+               path = LDAPI_SOCK;
        } else {
                if ( strlen(path) > (sizeof( server.sun_path ) - 1) ) {
                        ldap_pvt_set_errno( ENAMETOOLONG );