From: Martti Rannanjärvi Date: Tue, 24 Oct 2017 07:23:20 +0000 (+0300) Subject: auth: Don't use undefined SASL_VERSION_MAJOR X-Git-Tag: 2.3.0.rc1~723 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a8db75f72270a4d5964fd9ec082b618dd8d138d;p=thirdparty%2Fdovecot%2Fcore.git auth: Don't use undefined SASL_VERSION_MAJOR --- diff --git a/src/auth/db-ldap.c b/src/auth/db-ldap.c index 734fa81410..c0e57a1725 100644 --- a/src/auth/db-ldap.c +++ b/src/auth/db-ldap.c @@ -31,7 +31,7 @@ #ifdef LDAP_OPT_X_TLS # define OPENLDAP_TLS_OPTIONS #endif -#if SASL_VERSION_MAJOR < 2 +#if !defined(SASL_VERSION_MAJOR) || SASL_VERSION_MAJOR < 2 # undef HAVE_LDAP_SASL #endif