]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/friendly.c
Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
[openldap] / libraries / libldap / friendly.c
index 1bf6c4403388800d05b120b953c058655b778e9b..278c729cee01b27570c0fd60f9a2dd21375b3c8b 100644 (file)
@@ -13,14 +13,14 @@ static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <ctype.h>
 
+#include <ac/ctype.h>
 #include <ac/errno.h>
 #include <ac/socket.h>
 #include <ac/string.h>
+#include <ac/time.h>
 
-#include "lber.h"
-#include "ldap.h"
+#include "ldap-int.h"
 
 char *
 ldap_friendly_name( char *filename, char *uname, FriendlyMap **map )
@@ -31,9 +31,7 @@ ldap_friendly_name( char *filename, char *uname, FriendlyMap **map )
        char    buf[BUFSIZ];
 
        if ( map == NULL ) {
-#if !defined( MACOS ) && !defined( DOS )
                errno = EINVAL;
-#endif
                return( uname );
        }
 
@@ -85,8 +83,8 @@ ldap_friendly_name( char *filename, char *uname, FriendlyMap **map )
                                }
                        }
 
-                       (*map)[i].f_unfriendly = strdup( buf );
-                       (*map)[i].f_friendly strdup( s );
+                       (*map)[i].f_unfriendly = ldap_strdup( buf );
+                       (*map)[i].f_friendly   = ldap_strdup( s );
                        i++;
                }