From db18784462ef444357b6b8e732d48fa2a4836fe6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 17 Mar 2004 23:17:33 +0000 Subject: [PATCH] Fix builds with LDAP_GROUPTING_TRANSACTION --- clients/tools/ldapmodify.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.5