From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sat, 15 Mar 2025 05:00:49 +0000 (+0000) Subject: Portability: add include guards to ldap_backend.cc (#2021) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=716671aca1ef8faeb4f8aadf17fe896a4cf9c837;p=thirdparty%2Fsquid.git Portability: add include guards to ldap_backend.cc (#2021) In the non-Windows case, we unconditinoally include some system headers. Add conditions for improved portability Fixes error: ``` src/auth/digest/LDAP/ldap_backend.cc:49:10: fatal error: lber.h: No such file or directory ``` --- diff --git a/src/auth/digest/LDAP/ldap_backend.cc b/src/auth/digest/LDAP/ldap_backend.cc index 2db3e8a806..77b41477bb 100644 --- a/src/auth/digest/LDAP/ldap_backend.cc +++ b/src/auth/digest/LDAP/ldap_backend.cc @@ -46,8 +46,12 @@ PFldap_start_tls_s Win32_ldap_start_tls_s; #else +#if HAVE_LBER_H #include +#endif +#if HAVE_LDAP_H #include +#endif #endif #define PROGRAM_NAME "digest_pw_auth(LDAP_backend)"