]> git.ipfire.org Git - thirdparty/git.git/commit
clar: avoid compile error with mingw-w64
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 4 Sep 2024 14:16:54 +0000 (16:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2024 15:41:36 +0000 (08:41 -0700)
commit42020d2dc01d552c9f034c691d25f726735ab3c5
treef760261cc8018f8978f18392349060fb423ac141
parentaa57db2822e585b623c21dc5f38fda272f272849
clar: avoid compile error with mingw-w64

When using mingw-w64 to compile the code, and using `_stat()`, it is
necessary to use `struct _stat`, too, and not `struct stat` (as the
latter is incompatible with the "dashed" version because it is limited
to 32-bit time types for backwards compatibility).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/clar/clar.c