diff --git a/libraries/libldap/ppolicy.c b/libraries/libldap/ppolicy.c index b9c5e15ce7..b9c8866c43 100644 --- a/libraries/libldap/ppolicy.c +++ b/libraries/libldap/ppolicy.c @@ -22,6 +22,8 @@ #include "ldap-int.h" +#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST + #define PPOLICY_WARNING 0xa0L #define PPOLICY_ERROR 0xa1L @@ -203,3 +205,5 @@ ldap_passwordpolicy_err2txt( LDAPPasswordPolicyError err ) default: return "Unknown error code"; } } + +#endif /* LDAP_CONTROL_PASSWORDPOLICYREQUEST */