Skip to content

Commit

Permalink
dirmngr: Fix build with --disable-ldap.
Browse files Browse the repository at this point in the history
* dirmngr/dirmngr.c (parse_rereadable_options) [USE_LDAP]:
Conditionalize.

--

Reported-by: Phil Pennock
Signed-off-by: NIIBE Yutaka <[email protected]>
(cherry picked from commit c8b2162)
  • Loading branch information
NIIBE Yutaka authored and dd9jn committed Jun 16, 2021
1 parent 89df861 commit c6900f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dirmngr/dirmngr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -791,6 +792,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
opt.ldapservers = server;
}
}
#endif
break;

case oKeyServer:
Expand Down

0 comments on commit c6900f5

Please sign in to comment.