From 15cabdc53727a9615d6e29370ba06dcc17c13034 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 7 Apr 2016 19:39:40 -0400 Subject: [PATCH] rgw_ldap: make ldap.h inclusion conditional The feature implementation is conditional, embarassingly, the header inclusion is not. Signed-off-by: Matt Benjamin --- src/rgw/rgw_ldap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_ldap.h b/src/rgw/rgw_ldap.h index 46b05fff658b1..02eb61e1f4b0b 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 -- 2.39.5