]> git.sur5r.net Git - openldap/blobdiff - include/portable.h.nt
Statement concerning appropriate use of I-D.
[openldap] / include / portable.h.nt
index 7b6aac408f05ac4990012ac575a12116d00f7987..2b3a2a9c848c8034744235c2a89f91b4cb2d9dba 100644 (file)
 /* --------------------------------------------------- */
 /* 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 */
+#define HAVE_NT_SERVICE_MANAGER 1
+#define HAVE_NT_EVENT_LOG 1
+
+#elif _WIN95
+/* Windows95 specific features */
+#endif
+
+#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
+/* #define LDAP_MEMORY_DEBUG 1 */
+#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 sleep _sleep
+/* #define vsprintf    _vsprintf */
 
 /* 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
 
 /* we have spawnlp instead of fork/execlp */
 #define HAVE_SPAWNLP 1
@@ -175,6 +209,9 @@ typedef char * caddr_t;
 /* define this if sys_errlist is not defined in stdio.h or errno.h */
 /* #undef DECL_SYS_ERRLIST */
 
+/* define this if sys_errlist is available */
+#define HAVE_SYS_ERRLIST 1 
+
 /* define if you have berkeley db */
 /* #undef HAVE_BERKELEY_DB */
 
@@ -209,7 +246,7 @@ typedef char * caddr_t;
 /* #undef LDAP_CONNECTIONLESS */
 
 /* define this to add debugging code */
-#define LDAP_DEBUG 1
+/* #undef LDAP_DEBUG */
 
 /* define this to remove -lldap cache support */
 /* #undef LDAP_NOCACHE */
@@ -241,6 +278,9 @@ typedef char * caddr_t;
 /* define this for crypt(3) password support */
 /* #undef SLAPD_CRYPT */
 
+/* define this to use SLAPD LDAP backend */
+/* #undef SLAPD_LDAP */
+
 /* define this to use SLAPD LDBM backend */
 #define SLAPD_LDBM 1
 
@@ -254,7 +294,7 @@ typedef char * caddr_t;
 /* #undef SLAPD_PHONETIC */
 
 /* define this for Reverse Lookup support */
-/* #undef SLAPD_RLOOKUPS */
+#define SLAPD_RLOOKUPS 1
 
 /* define this to use SLAPD shell backend */
 /* #undef SLAPD_SHELL */
@@ -265,6 +305,9 @@ typedef char * caddr_t;
 /* define this if sig_atomic_t isn't defined in signal.h */
 /* #undef sig_atomic_t */
 
+/* define this if socklen_t isn't defined in sys/types.h or sys/socket.h */
+#define socklen_t int
+
 /* These are defined in ldap_features.h */
 /*
  LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
@@ -703,6 +746,6 @@ typedef char * caddr_t;
 #include "ldap_cdefs.h"
 #include "ldap_features.h"
 
-#include "ac/assert.h"
+#include <ac/assert.h>
 
 #endif /* _LDAP_PORTABLE_H */