Merge pull request #8500 from linuxbox2/ldap-include

rgw_ldap: make ldap.h inclusion conditional

Reviewed-by: Dan Mick <dmick@redhat.com>
This commit is contained in:
Dan Mick 2016-04-07 17:43:18 -07:00
commit 872ad16e4a

View 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>