]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_ldap: make ldap.h inclusion conditional 8500/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 7 Apr 2016 23:39:40 +0000 (19:39 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 7 Apr 2016 23:39:40 +0000 (19:39 -0400)
The feature implementation is conditional, embarassingly, the
header inclusion is not.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_ldap.h

index 46b05fff658b1543109e6b88e89bc6b9771b5dfb..02eb61e1f4b0b36078ecec702117e6b797c348b6 100644 (file)
@@ -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 <stdint.h>
 #include <tuple>