Skip to content

Commit 49d9cd8

Browse files
To1negitster
authored andcommitted
help: include git-zlib.h to print zlib version
In 41f1a84 (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 <[email protected]> Reviewed-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 78cdeed commit 49d9cd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

help.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define DISABLE_SIGN_COMPARE_WARNINGS
33

44
#include "git-compat-util.h"
5+
#include "git-zlib.h"
56
#include "config.h"
67
#include "builtin.h"
78
#include "exec-cmd.h"

0 commit comments

Comments
 (0)