diff options
author | Toon Claes <toon@iotcl.com> | 2025-03-07 15:18:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-07 12:23:29 -0800 |
commit | 49d9cd8dea520a318412792b50ab4b91ce71b9fe (patch) | |
tree | 5a1291c3a8f38fac56b51a94b8173a57e0fcd230 /help.c | |
parent | 78cdeed4c79d165c915e8de0355cc3fb7f5797c5 (diff) |
help: include git-zlib.h to print zlib version
In 41f1a8435a (git-compat-util: move include of "compat/zlib.h" into
"git-zlib.h", 2025-01-28) some code was refactored to enable easier
linking against zlib-ng.
This removed `zlib.h` being indirectly included in `help.c`. As this
file uses `ZLIB_VERSION` to print the version number of zlib when
running git-version(1) with `--build-options`, this resulted in a
regression.
Include `git-zlib.h` directly into `help.c` to print zlib version
information. This brings back the zlib version in the output of
`git version --build-options`.
Signed-off-by: Toon Claes <toon@iotcl.com>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2,6 +2,7 @@ #define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" +#include "git-zlib.h" #include "config.h" #include "builtin.h" #include "exec-cmd.h" |