From: Kurt Zeilenga Date: Wed, 17 Mar 2004 23:17:33 +0000 (+0000) Subject: Fix builds with LDAP_GROUPTING_TRANSACTION X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db18784462ef444357b6b8e732d48fa2a4836fe6;p=openldap Fix builds with LDAP_GROUPTING_TRANSACTION --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 9157824466..f71cc86fe9 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -1116,7 +1116,13 @@ static int process_response( LDAPMessage *res; int rc = LDAP_OTHER; - if( ldap_result( ld, msgid, txn ? 0 : 1, NULL, &res ) == -1 ) { + if( ldap_result( ld, msgid, +#ifdef LDAP_GROUP_TRANSACTION + txn ? 0 : 1, +#else + 1, +#endif + NULL, &res ) == -1 ) { ldap_get_option( ld, LDAP_OPT_ERROR_NUMBER, &rc ); return rc; }