1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-30 16:17:02 +01:00

dirmngr: Fix build with --disable-ldap.

* dirmngr/dirmngr.c (parse_rereadable_options) [USE_LDAP]:
Conditionalize.

--

Reported-by: Phil Pennock
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit c8b2162c0e7eb42b74811b7ed225fa0f56be4083)
This commit is contained in:
NIIBE Yutaka 2021-06-11 10:30:02 +09:00 committed by Werner Koch
parent 89df86157e
commit c6900f5723
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -770,6 +770,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
case oRecursiveResolver: enable_recursive_resolver (1); break;
case oLDAPServer:
#if USE_LDAP
{
ldap_server_t server;
char *p;
@ -791,6 +792,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
opt.ldapservers = server;
}
}
#endif
break;
case oKeyServer: