aboutsummaryrefslogtreecommitdiff
path: root/reftable
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-01-28 09:41:29 +0100
committerJunio C Hamano <gitster@pobox.com>2025-01-28 13:03:22 -0800
commit629188ede7ee00c925ef28b85b1e68fc9e05fb93 (patch)
tree27de4e9a05a979cf966b04eb58a8a2f43a218628 /reftable
parent27e8960037289dc10e6f659b424c66bfb07146b5 (diff)
downloadgit-629188ede7ee00c925ef28b85b1e68fc9e05fb93.tar.xz
compat: introduce new "zlib.h" header
Introduce a new "compat/zlib-compat.h" header that we include instead of including <zlib.h> directly. This will allow us to wire up zlib-ng as an alternative backend for zlib compression in a subsequent commit. Note that we cannot just call the file "compat/zlib.h", as that may otherwise cause us to include that file instead of <zlib.h>. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable')
-rw-r--r--reftable/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/block.c b/reftable/block.c
index 9858bbc7c5..bc9b079634 100644
--- a/reftable/block.c
+++ b/reftable/block.c
@@ -13,7 +13,7 @@ https://developers.google.com/open-source/licenses/bsd
#include "record.h"
#include "reftable-error.h"
#include "system.h"
-#include <zlib.h>
+#include "compat/zlib-compat.h"
int header_size(int version)
{