/* --------------------------------------------------- */
/* begin of MSVC5 specific entries */
+#define OPENLDAP_PACKAGE "OpenLDAP"
+#define OPENLDAP_VERSION "-devel"
+#define EXEEXT ".exe"
+
+#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
+#define LDAP_DEBUG 1
+#endif
+
/* MSVC5 doesn't define _STDC_ but supports _STDC_ features */
#define __NEED_PROTOTYPES 1
#define HAVE_STDARG 1
#define HAVE_REGEX_H 1
/* win32 specific stuff */
+#define sleep _sleep
+
#define strcasecmp stricmp
#define strncasecmp strnicmp
#define strdup _strdup
+
+#define snprintf _snprintf
#define vsnprintf _vsnprintf
-#define vsprintf _vsprintf
+/* #define vsprintf _vsprintf */
/* define type for caddr_t */
typedef char * caddr_t;
+#define LOG_DEBUG 0
+#define openlog( a, b )
+#define closelog()
+
+/* we have NT threads */
+#ifdef _MT
+#define HAVE_NT_THREADS 1
+#else
+#define NO_THREADS 1
+#endif
+
/* we have spawnlp instead of fork/execlp */
#define HAVE_SPAWNLP 1
/* we have <conio.h> */
#define HAVE_CONIO_H 1
+/* we have <direct.h> */
+#define HAVE_DIRECT_H 1
+
/* we have <io.h> */
#define HAVE_IO_H 1
/* we have <process.h> */
#define HAVE_PROCESS_H 1
+#define LDAP_SIGUSR1 SIGILL
+#define LDAP_SIGUSR2 SIGTERM
+
+#define MAXPATHLEN _MAX_PATH
+
/* end of MSVC5 specific entries */
/* --------------------------------------------------- */
/* #undef HAVE_BERKELEY_DB */
/* define if you have berkeley db2 */
-/* #undef HAVE_BERKELEY_DB2 */
+#define HAVE_BERKELEY_DB2 1
/* define if you have crypt */
/* #undef HAVE_CRYPT */
/* #undef LDAP_SYSLOG */
/* define this to use DBBTREE w/ LDBM backend */
-/* #undef LDBM_USE_DBBTREE */
+#define LDBM_USE_DBBTREE 1
/* define this to use DBHASH w/ LDBM backend */
/* #undef LDBM_USE_DBHASH */
/* define this for ACL Group support */
-/* #undef SLAPD_ACLGROUPS */
+#define SLAPD_ACLGROUPS 1
/* define this to use SLAPD Berkeley DB2 backend */
-/* #undef SLAPD_BDB2 */
+/* #define SLAPD_BDB2 1 */
/* define this for ClearText password support */
-/* #undef SLAPD_CLEARTEXT */
+#define SLAPD_CLEARTEXT 1
/* define this for crypt(3) password support */
/* #undef SLAPD_CRYPT */
/* define this to use SLAPD LDBM backend */
-/* #undef SLAPD_LDBM */
+#define SLAPD_LDBM 1
/* define this to use SLAPD passwd backend */
/* #undef SLAPD_PASSWD */
#define HAVE_VSPRINTF 1
/* Define if you have the waitpid function. */
-#define HAVE_WAITPID 1
+/* #undef HAVE_WAITPID 1 */
/* Define if you have the <arpa/nameser.h> header file. */
/* #undef HAVE_ARPA_NAMESER_H */
/* #undef HAVE_CRYPT_H */
/* Define if you have the <db.h> header file. */
-/* #undef HAVE_DB_H */
+#define HAVE_DB_H 1
/* Define if you have the <db_185.h> header file. */
/* #undef HAVE_DB_185_H */
/* Define if you have the socket library (-lsocket). */
/* #undef HAVE_LIBSOCKET */
-/* define if you have -lxttp */
+/* define if you have -lxtpp */
/* #undef HAVE_XTPP */
/* define if you have -ldsap */
/* #undef CROSS_COMPILING */
/* begin of postamble */
+
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
+#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
+#define LDAP_TEST
+#endif
+#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
+#define LDAP_DEBUG
+#endif
+
#include "ldap_cdefs.h"
#include "ldap_features.h"
+
+#include "ac/assert.h"
+
#endif /* _LDAP_PORTABLE_H */