]> git.sur5r.net Git - openldap/commitdiff
Fix builds with LDAP_GROUPTING_TRANSACTION
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 23:17:33 +0000 (23:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 23:17:33 +0000 (23:17 +0000)
clients/tools/ldapmodify.c

index 9157824466427ad08ff1d67324891f0adb01970d..f71cc86fe951cca9861dc9dcf0a692eecb311bf6 100644 (file)
@@ -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;
        }