From 486721d531dd0e104e61c9bf8e37f0b34a66af3c Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 10 Mar 2006 02:44:32 +0000 Subject: [PATCH] Fix build if LDAP_X_TXN is undefined --- servers/slapd/controls.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5