[PATCH 5/8] wldap32: Build with msvcrt.
Hans Leidekker
hans at codeweavers.com
Mon Apr 19 03:04:51 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/wldap32/Makefile.in | 2 ++
dlls/wldap32/libldap.h | 10 +++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dlls/wldap32/Makefile.in b/dlls/wldap32/Makefile.in
index 18a37151f99..831c00d65e1 100644
--- a/dlls/wldap32/Makefile.in
+++ b/dlls/wldap32/Makefile.in
@@ -4,6 +4,8 @@ IMPORTS = user32
EXTRAINCL = $(LDAP_CFLAGS)
EXTRALIBS = $(LDAP_LIBS)
+EXTRADLLFLAGS = -mno-cygwin
+
C_SRCS = \
add.c \
ber.c \
diff --git a/dlls/wldap32/libldap.h b/dlls/wldap32/libldap.h
index 1dfadf7e3bc..cc247e8fd82 100644
--- a/dlls/wldap32/libldap.h
+++ b/dlls/wldap32/libldap.h
@@ -19,8 +19,8 @@
/* compatible with structures defined in ldap.h */
typedef struct bervalU
{
- unsigned long bv_len;
- char *bv_val;
+ ULONG_PTR bv_len;
+ char *bv_val;
} BerValueU;
typedef struct
@@ -79,8 +79,8 @@ typedef struct
typedef struct timevalU
{
- unsigned long tv_sec;
- unsigned long tv_usec;
+ LONG_PTR tv_sec;
+ LONG_PTR tv_usec;
} LDAP_TIMEVALU;
#ifndef SASL_CB_LIST_END
@@ -92,7 +92,7 @@ typedef struct timevalU
typedef struct sasl_interactU
{
- unsigned long id;
+ ULONG_PTR id;
const char *challenge;
const char *prompt;
const char *defresult;
--
2.30.2
More information about the wine-devel
mailing list