From 7b6c92e6bbbd8b48e73ca34ed3033beaa853381a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 29 Oct 2020 16:11:40 +0900 Subject: [PATCH] journalctl: drop format_journal_url() if gcrypt is not used Follow-up for f1b823596f8a4dc6b1f76206b7473bac71e3840b. --- src/journal/journalctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 4014b8aad2e..8bc0aa22dea 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1779,6 +1779,7 @@ static int add_syslog_identifier(sd_journal *j) { return 0; } +#if HAVE_GCRYPT static int format_journal_url( const void *seed, size_t seed_size, @@ -1825,6 +1826,7 @@ static int format_journal_url( *ret_url = TAKE_PTR(url); return 0; } +#endif static int setup_keys(void) { #if HAVE_GCRYPT -- 2.47.3