]> git.sur5r.net Git - openldap/blobdiff - include/portable.h.nt
Initial checkin of ldap_search_ext() and friends.
[openldap] / include / portable.h.nt
index e01023a684fcd686400809c1d905e07ba237c3ce..9ce2cdc7495a849f5eb4e6c8014dec0ca3d68a03 100644 (file)
 /* --------------------------------------------------- */
 /* 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
 
@@ -47,12 +70,20 @@ typedef char * caddr_t;
 /* 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 */
 /* --------------------------------------------------- */
 
@@ -164,7 +195,7 @@ typedef char * caddr_t;
 /* #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 */
@@ -209,25 +240,25 @@ typedef char * caddr_t;
 /* #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 */
@@ -403,7 +434,7 @@ typedef char * caddr_t;
 #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 */
@@ -412,7 +443,7 @@ typedef char * caddr_t;
 /* #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 */
@@ -600,7 +631,7 @@ typedef char * caddr_t;
 /* 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 */
@@ -673,10 +704,21 @@ typedef char * caddr_t;
 /* #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 */