Fix build if LDAP_X_TXN is undefined

This commit is contained in:
Luke Howard 2006-03-10 02:44:32 +00:00
parent ffee887d71
commit 486721d531

View 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) {