From f81bffa87aa66da8611dc5450eb0a528e1b1aaa8 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sat, 15 Mar 2025 05:00:49 +0000 Subject: [PATCH] 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 ``` --- src/auth/digest/LDAP/ldap_backend.cc | 4 ++++ 1 file changed, 4 insertions(+) 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)" -- 2.47.2