# define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
#elif defined( LOG_NOWAIT )
# define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
-#else
+#elif defined( LOG_PID )
# define OPENLOG_OPTIONS ( LOG_PID )
+#else
+# define OPENLOG_OPTIONS ( 0 )
#endif
#endif /* _AC_SYSLOG_H_ */
# include <time.h>
#endif
+#ifdef WIN32
+#include <sys/types.h>
+#include <sys/timeb.h>
+#endif
+
#endif /* _AC_TIME_H */
syslog( ldap_syslog_level, (fmt), (arg1), (arg2), (arg3) ); \
}
#else /* LDAP_SYSLOG */
-#ifndef WINSOCK
+#ifndef HAVE_WINSOCK
#define Debug( level, fmt, arg1, arg2, arg3 ) \
if ( ldap_debug & (level) ) \
fprintf( stderr, (fmt), (arg1), (arg2), (arg3) );
/* ISC Base64 Routines */
/* base64.c */
-LDAP_F int lutil_b64_ntop LDAP_P((u_char const *, size_t, char *, size_t));
-LDAP_F int lutil_b64_pton LDAP_P((char const *, u_char *, size_t));
+LDAP_F int lutil_b64_ntop LDAP_P((unsigned char const *, size_t, char *, size_t));
+LDAP_F int lutil_b64_pton LDAP_P((char const *, unsigned char *, size_t));
/* detach.c */
LDAP_F void lutil_detach LDAP_P((int debug, int do_close));
/* passwd.c */
LDAP_P((lutil_SHA1_CTX *context));
LDAP_F void lutil_SHA1Update
- LDAP_P((lutil_SHA1_CTX *context, const unsigned char *data, u_int len));
+ LDAP_P((lutil_SHA1_CTX *context, const unsigned char *data, uint32 len));
LDAP_F void lutil_SHA1Final
LDAP_P((unsigned char digest[20], lutil_SHA1_CTX *context));
/* define type for caddr_t */
typedef char * caddr_t;
+#define LOG_DEBUG 0
+#define openlog( a, b )
+
/* we have NT threads */
#define HAVE_NT_THREADS 1
#define SLAPD_ACLGROUPS 1
/* define this to use SLAPD Berkeley DB2 backend */
-#define SLAPD_BDB2 1
+/* #define SLAPD_BDB2 1 */
/* define this for ClearText password support */
#define SLAPD_CLEARTEXT 1
/* #undef SLAPD_CRYPT */
/* define this to use SLAPD LDBM backend */
-/* #define SLAPD_LDBM 1 */
+#define SLAPD_LDBM 1
/* define this to use SLAPD passwd backend */
/* #undef SLAPD_PASSWD */