Index: nslcd/myldap.c =================================================================== --- nslcd/myldap.c (revision 1234) +++ nslcd/myldap.c (working copy) @@ -65,7 +65,8 @@ /* Try to handle systems with both SASL libraries installed */ #if defined(HAVE_SASL_SASL_H) && defined(HAVE_SASL_AUXPROP_REQUEST) #include -#elif defined(HAVE_SASL_H) +#endif +#ifdef HAVE_SASL_H #include #endif #include Index: compat/ldap_compat.h =================================================================== --- compat/ldap_compat.h (revision 1234) +++ compat/ldap_compat.h (working copy) @@ -57,5 +57,9 @@ LDAPControl **sctrls,LDAPControl **cctrls); #endif /* not HAVE_LDAP_PASSWD_S */ +/* compatibility definition */ +#ifndef LDAP_SASL_QUIET +#define LDAP_SASL_QUIET 2U +#endif /* not LDAP_SASL_QUIET */ #endif /* COMPAT__LDAP_COMPAT_H */