* SHARED DEFINITIONS
* These are shared with Makefile and should not change via configure
*/
-#define DEFAULT_DIRSEP "/"
#define DEFAULT_BINDIR "%BINDIR%"
#define DEFAULT_SBINDIR "%SBINDIR%"
#define DEFAULT_DATADIR "%DATADIR%"
/*
* SHARED DEFINITIONS - things you should change
*/
-#define DEFAULT_DIRSEP "\\"
#define DEFAULT_BINDIR "C:\\OpenLDAP\\bin"
#define DEFAULT_SBINDIR "C:\\OpenLDAP\\sbin"
#define DEFAULT_DATADIR "C:\\OpenLDAP\\share"
#define OPENLDAP_PACKAGE "OpenLDAP"
#define OPENLDAP_VERSION "-devel"
#define EXEEXT ".exe"
+#define DIRSEP "\\"
#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
#define LDAP_DEBUG 1
#include "portable.h"
#include <stdlib.h>
+#include <ac/string.h>
#include "lber-int.h"
struct stat st;
#endif
- sprintf( buf, "%s%s%s%s", li->li_directory, DEFAULT_DIRSEP, name, suffix );
+ sprintf( buf, "%s%s%s%s", li->li_directory, DIRSEP, name, suffix );
Debug( LDAP_DEBUG_TRACE, "=> ldbm_cache_open( \"%s\", %d, %o )\n", buf,
flags, li->li_mode );
/* if the data directory is not an absolute path, have it relative
to the current working directory (which should not be configured !) */
- if ( *li->li_directory != *DEFAULT_DIRSEP ) {
+ if ( *li->li_directory != *DIRSEP ) {
char cwd[MAXPATHLEN];
(void) getcwd( cwd, MAXPATHLEN );
- sprintf( cwd, "%s%s%s", cwd, DEFAULT_DIRSEP, li->li_directory );
+ sprintf( cwd, "%s%s%s", cwd, DIRSEP, li->li_directory );
free( li->li_directory );
li->li_directory = strdup( cwd );
{
ObjectClass *oc;
AttributeType *at;
- int i, j;
+ int i;
Attribute *a;
char **pp;