]> git.sur5r.net Git - openldap/commitdiff
import fix to ITS#4729 (no mention in CHANGES since it never got released)
authorPierangelo Masarati <ando@openldap.org>
Fri, 3 Nov 2006 08:36:35 +0000 (08:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 3 Nov 2006 08:36:35 +0000 (08:36 +0000)
servers/slapd/overlays/dynlist.c

index 4fc91171b94c679f0bdb1044c405a1bea558cd6b..62c127c10b2c2280bb8d557549dc82e7d7ee96a3 100644 (file)
 
 #ifdef SLAPD_OVER_DYNLIST
 
-#if LDAP_VENDOR_VERSION_MINOR != X && LDAP_VENDOR_VERSION_MINOR < 3
-#define OL_2_2_COMPAT
-#elif SLAPD_OVER_DYNGROUP != SLAPD_MOD_STATIC
+#if LDAP_VENDOR_VERSION_MINOR == X || LDAP_VENDOR_VERSION_MINOR > 3
+#if SLAPD_OVER_DYNGROUP != SLAPD_MOD_STATIC
 #define TAKEOVER_DYNGROUP
 #endif
+#else
+#if LDAP_VENDOR_VERSION_MINOR < 3
+#define OL_2_2_COMPAT
+#endif
+#endif
 
 #include <stdio.h>