]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Don't use undefined SASL_VERSION_MAJOR
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Tue, 24 Oct 2017 07:23:20 +0000 (10:23 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 30 Oct 2017 08:18:50 +0000 (10:18 +0200)
src/auth/db-ldap.c

index 734fa81410c522556ee2d68f9db8497b68326ce2..c0e57a1725016c0893c5ea54aa5be5831faf82a1 100644 (file)
@@ -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