From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sun, 2 Mar 2025 21:24:42 +0000 (+0000) Subject: MinGW: Fix winldap.h detection (#2010) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74e0d1cb1d429ed9a90b25e13768f396fd7025f3;p=thirdparty%2Fsquid.git MinGW: Fix winldap.h detection (#2010) requires to be previously included in order to compile. configure:38466: checking for winldap.h wincrypt.h:5051:254: error: 'PSYSTEMTIME' has not been declared --- diff --git a/configure.ac b/configure.ac index cc6393b790..650d0b9783 100644 --- a/configure.ac +++ b/configure.ac @@ -1185,7 +1185,11 @@ SQUID_CHECK_LIB_WORKS(ldap,[ dnl On MinGW OpenLDAP is not available, try Windows LDAP libraries dnl TODO: use AC_CHECK_LIB LIBLDAP_LIBS="-lwldap32" - AC_CHECK_HEADERS(winldap.h) + AC_CHECK_HEADERS([windows.h winldap.h],,,[ + #if HAVE_WINDOWS_H + #include + #endif + ]) ]) AC_CHECK_HEADERS(ldap.h lber.h) AC_CHECK_HEADERS(mozldap/ldap.h)