]> git.sur5r.net Git - openldap/commitdiff
Make modify/increment conditional
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Dec 2003 21:42:48 +0000 (21:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Dec 2003 21:42:48 +0000 (21:42 +0000)
servers/slapd/controls.c

index eed5c8bd796756d9cc3f13bee81a0aec7fa02532..97e66724ea505d3d19327d1142de3ad6826460ff 100644 (file)
@@ -113,9 +113,11 @@ static struct slap_control control_defs[] = {
        { LDAP_CONTROL_SYNC,
                SLAP_CTRL_HIDE|SLAP_CTRL_SEARCH, NULL,
                parseLDAPsync, LDAP_SLIST_ENTRY_INITIALIZER(next) },
+#ifdef LDAP_CONTROL_MODIFY_INCREMENT
        { LDAP_CONTROL_MODIFY_INCREMENT,
                SLAP_CTRL_HIDE|SLAP_CTRL_MODIFY, NULL,
                parseModifyIncrement, LDAP_SLIST_ENTRY_INITIALIZER(next) },
+#endif
        { LDAP_CONTROL_MANAGEDSAIT,
                SLAP_CTRL_ACCESS, NULL,
                parseManageDSAit, LDAP_SLIST_ENTRY_INITIALIZER(next) },