]> git.sur5r.net Git - openldap/commitdiff
Fix build if LDAP_X_TXN is undefined
authorLuke Howard <lukeh@openldap.org>
Fri, 10 Mar 2006 02:44:32 +0000 (02:44 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 10 Mar 2006 02:44:32 +0000 (02:44 +0000)
servers/slapd/controls.c

index 4592ee2aae20b0e304bb37e99083748669bc05b3..eb624f00ce42fa0d28a1a833623d9b58431b3a3e 100644 (file)
@@ -1210,10 +1210,12 @@ static int parsePreRead (
                return LDAP_PROTOCOL_ERROR;
        }
 
+#ifdef LDAP_X_TXN
        if ( op->o_txnSpec ) { /* temporary limitation */
                rs->sr_text = "cannot perform pre-read in transaction";
                return LDAP_UNWILLING_TO_PERFORM;
        }
+#endif
 
        ber = ber_init( &(ctrl->ldctl_value) );
        if (ber == NULL) {
@@ -1273,10 +1275,12 @@ static int parsePostRead (
                return LDAP_PROTOCOL_ERROR;
        }
 
+#ifdef LDAP_X_TXN
        if ( op->o_txnSpec ) { /* temporary limitation */
                rs->sr_text = "cannot perform post-read in transaction";
                return LDAP_UNWILLING_TO_PERFORM;
        }
+#endif
 
        ber = ber_init( &(ctrl->ldctl_value) );
        if (ber == NULL) {