mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
NT port
This commit is contained in:
parent
e5635b2662
commit
92d4ccf906
6 changed files with 17 additions and 7 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -21,4 +21,9 @@
|
|||
# include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <sys/types.h>
|
||||
#include <sys/timeb.h>
|
||||
#endif
|
||||
|
||||
#endif /* _AC_TIME_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) );
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue