From: Luke Howard Date: Fri, 10 Mar 2006 02:44:32 +0000 (+0000) Subject: Fix build if LDAP_X_TXN is undefined X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=486721d531dd0e104e61c9bf8e37f0b34a66af3c;p=openldap Fix build if LDAP_X_TXN is undefined --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 4592ee2aae..eb624f00ce 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -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) {