diff options
author | James Hilliard <james.hilliard1@gmail.com> | 2021-07-11 04:39:33 -0600 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-19 11:57:51 +0200 |
commit | e5d86ebed5624ef62342c820a5868b1075deb300 (patch) | |
tree | 827d85a9126283f1eabb08233a23eb454fe80b64 /src/shared/pretty-print.c | |
parent | 95b63c755b73606e3dce094d92024c1e57ee5ed4 (diff) | |
download | systemd-e5d86ebed5624ef62342c820a5868b1075deb300.tar.gz |
Add meson option to disable urlify.
Useful for systems that don't use a version of less with hyperlink
support.
Diffstat (limited to 'src/shared/pretty-print.c')
-rw-r--r-- | src/shared/pretty-print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/pretty-print.c b/src/shared/pretty-print.c index 137ba77b3a..7983c0a33a 100644 --- a/src/shared/pretty-print.c +++ b/src/shared/pretty-print.c @@ -19,6 +19,7 @@ #include "util.h" bool urlify_enabled(void) { +#if ENABLE_URLIFY static int cached_urlify_enabled = -1; if (cached_urlify_enabled < 0) { @@ -32,6 +33,9 @@ bool urlify_enabled(void) { } return cached_urlify_enabled; +#else + return 0; +#endif } int terminal_urlify(const char *url, const char *text, char **ret) { |