From 92d4ccf906a2a3376858ce79678f584d3b302e38 Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Thu, 1 Apr 1999 16:38:11 +0000 Subject: [PATCH] NT port --- include/ac/syslog.h | 4 +++- include/ac/time.h | 5 +++++ include/ldap_log.h | 2 +- include/lutil.h | 4 ++-- include/lutil_sha1.h | 2 +- include/portable.h.nt | 7 +++++-- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/include/ac/syslog.h b/include/ac/syslog.h index 0b2262429c..ebc143b9f0 100644 --- a/include/ac/syslog.h +++ b/include/ac/syslog.h @@ -25,8 +25,10 @@ # 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_ */ diff --git a/include/ac/time.h b/include/ac/time.h index 8bdf4c5d02..3da6ddfe07 100644 --- a/include/ac/time.h +++ b/include/ac/time.h @@ -21,4 +21,9 @@ # include #endif +#ifdef WIN32 +#include +#include +#endif + #endif /* _AC_TIME_H */ diff --git a/include/ldap_log.h b/include/ldap_log.h index 8761eb38cf..335adb7945 100644 --- a/include/ldap_log.h +++ b/include/ldap_log.h @@ -65,7 +65,7 @@ extern int ldap_syslog_level; 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) ); diff --git a/include/lutil.h b/include/lutil.h index dfe1d9d9ad..be87d7168f 100644 --- a/include/lutil.h +++ b/include/lutil.h @@ -20,8 +20,8 @@ LDAP_BEGIN_DECL /* 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 */ diff --git a/include/lutil_sha1.h b/include/lutil_sha1.h index cdcabf4e41..da40db8fb6 100644 --- a/include/lutil_sha1.h +++ b/include/lutil_sha1.h @@ -43,7 +43,7 @@ LDAP_F void lutil_SHA1Init 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)); diff --git a/include/portable.h.nt b/include/portable.h.nt index 0420ab3995..7b6aac408f 100644 --- a/include/portable.h.nt +++ b/include/portable.h.nt @@ -36,6 +36,9 @@ /* 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 @@ -230,7 +233,7 @@ typedef char * caddr_t; #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 @@ -239,7 +242,7 @@ typedef char * caddr_t; /* #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 */ -- 2.39.5