X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fportable.nt;h=03d8cc395cf570c1e8bd75cebbee850cb1aacb8c;hb=51e619d424b43446dab1090162de241ddc968edf;hp=07886f78f4e8f7b80360c4a4b3a3bfe774c0e134;hpb=7ee686dbb4b0397047bd68ecfd0d65c9390abeb1;p=openldap diff --git a/include/portable.nt b/include/portable.nt index 07886f78f4..03d8cc395c 100644 --- a/include/portable.nt +++ b/include/portable.nt @@ -1,7 +1,8 @@ +/* $OpenLDAP$ */ /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */ /* synced with portable.h.in 1.24 */ /* - * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA + * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. * * Redistribution and use in source and binary forms are permitted only @@ -15,24 +16,38 @@ /* end of preamble */ +#if !defined( SLAPD_SCHEMA_COMPAT ) && !defined( SLAPD_SCHEMA_NOT_COMPAT ) + /* use new schema codes */ +#define SLAPD_SCHEMA_NOT_COMPAT 1 +#endif + +/* comment this out if you don't have Cyrus SASL */ +#define HAVE_CYRUS_SASL 1 + /* --------------------------------------------------- */ /* begin of MSVC5 specific entries */ #define OPENLDAP_PACKAGE "OpenLDAP" #define OPENLDAP_VERSION "-devel" #define EXEEXT ".exe" -#define LDAP_DIRSEP "\\" /* don't suck in all of the win32 api */ #define WIN32_LEAN_AND_MEAN -#ifdef _WINNT -/* WindowsNT specific features */ +#if defined(_WIN32) && !defined(_WINNT) && !defined(_WIN95) +#define _WINNT +#endif + +#if defined( _MT ) && defined( _WINNT ) +#define HAVE_NT_THREADS 1 +#else +#define NO_THREADS 1 +#endif + +#ifdef HAVE_NT_THREADS +/* enable WINNT specific features only if we have NT THREADS */ #define HAVE_NT_SERVICE_MANAGER 1 #define HAVE_NT_EVENT_LOG 1 - -#elif _WIN95 -/* Windows95 specific features */ #endif #if defined( _DEBUG ) && !defined( LDAP_DEBUG ) @@ -48,7 +63,6 @@ #define strcasecmp stricmp #define strncasecmp strnicmp -#define strdup _strdup #define snprintf _snprintf #define vsnprintf _vsnprintf @@ -57,20 +71,8 @@ /* define type for caddr_t */ typedef char * caddr_t; -#define ssize_t signed int - -#define LOG_DEBUG 0 -#define openlog( a, b ) -#define closelog() - -#define FD_SETSIZE 1024 - -/* we have NT threads */ -#ifdef _MT -#define HAVE_NT_THREADS 1 -#else -#define NO_THREADS 1 -#endif +/* define type for ssize_t */ +typedef signed int ssize_t; /* we have spawnlp instead of fork/execlp */ #define HAVE_SPAWNLP 1 @@ -93,8 +95,8 @@ typedef char * caddr_t; /* we have */ #define HAVE_PROCESS_H 1 -#define LDAP_SIGUSR1 SIGILL -#define LDAP_SIGUSR2 SIGTERM +/* we have */ +#define HAVE_WINCRYPT_H 1 #define MAXPATHLEN _MAX_PATH @@ -209,10 +211,7 @@ typedef char * caddr_t; #define HAVE_SYS_ERRLIST 1 /* define if you have berkeley db */ -/* #undef HAVE_BERKELEY_DB */ - -/* define if you have berkeley db2 */ -#define HAVE_BERKELEY_DB2 1 +#define HAVE_BERKELEY_DB 1 /* define if you have crypt */ /* #undef HAVE_CRYPT */ @@ -280,6 +279,9 @@ typedef char * caddr_t; /* define this to use SLAPD LDBM backend */ #define SLAPD_LDBM 1 +/* define this to use SLAPD SQL backend */ +/* #undef SLAPD_SQL */ + /* define this to use SLAPD passwd backend */ /* #undef SLAPD_PASSWD */ @@ -295,9 +297,6 @@ typedef char * caddr_t; /* define this for per-object ACIs */ /* #undef SLAPD_ACI_ENABLED */ -/* define this for discrete rights in ACIs */ -/* #undef SLAPD_ACI_DISCRETE_RIGHTS */ - /* define this to use SLAPD shell backend */ /* #undef SLAPD_SHELL */ @@ -402,12 +401,12 @@ typedef char * caddr_t; /* Define if you have the sigset function. */ /* #undef HAVE_SIGSET */ -/* Define if you have the snprintf function. */ -/* #undef HAVE_SNPRINTF */ - /* Define if you have the socket function. */ #define HAVE_SOCKET 1 +/* Define if you have the snprintf function. */ +#define HAVE_SNPRINTF 1 + /* Define if you have the strdup function. */ #define HAVE_STRDUP 1 @@ -445,7 +444,7 @@ typedef char * caddr_t; /* #undef HAVE_SYSCONF */ /* Define if you have the tempnam function. */ -/* #undef HAVE_TEMPNAM */ +#define HAVE_TEMPNAM 1 /* Define if you have the thr_getconcurrency function. */ /* #undef HAVE_THR_GETCONCURRENCY */ @@ -526,7 +525,7 @@ typedef char * caddr_t; #define HAVE_MALLOC_H 1 /* Define if you have the header file. */ -/* #define HAVE_MEMORY_H */ +#define HAVE_MEMORY_H 1 /* Define if you have the header file. */ /* #undef HAVE_NCURSES_H */