Cleanup Windows build

Fix make depend errors in slapi
This commit is contained in:
Howard Chu 2023-09-07 20:03:07 +01:00
parent de89b06b03
commit 3489931553
2 changed files with 7 additions and 1 deletions

View file

@ -19,7 +19,7 @@ LIBRARY = libslapi.la
#all-common: $(LIBRARY) $(PROGRAMS)
# @touch plugin.c slapi_pblock.c slapi_utils.c slapi_ops.c slapi_ext.c
NT_SRCS = nt_err.c
NT_SRCS = $(top_srcdir)/libraries/liblber/nt_err.c
NT_OBJS = nt_err.lo
LIB_DEFS = -DSLAPI_LIBRARY

View file

@ -31,7 +31,11 @@
#include <slap.h>
#include <slapi.h>
#ifdef _WIN32
#include <winsock.h>
#else
#include <netdb.h>
#endif
#ifdef LDAP_SLAPI
@ -1971,6 +1975,8 @@ slapi_timer_current_time( void )
*/
#else /* _WIN32 */
LARGE_INTEGER now;
static LARGE_INTEGER base_time, performance_freq;
static int performance_counter_present;
if ( first_time ) {
first_time = 0;