diff --git a/src/rgw/rgw_ldap.h b/src/rgw/rgw_ldap.h index 46b05fff658..02eb61e1f4b 100644 --- a/src/rgw/rgw_ldap.h +++ b/src/rgw/rgw_ldap.h @@ -4,8 +4,10 @@ #ifndef RGW_LDAP_H #define RGW_LDAP_H +#if defined(HAVE_OPENLDAP) #define LDAP_DEPRECATED 1 #include "ldap.h" +#endif #include #include