From a3c6cb09113de978b971cbdacf5c4890d4237c28 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 26 Nov 2025 13:50:57 +0200 Subject: [PATCH] xz/Windows: Add a missing #include to fix the build with clang-cl Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-1986829734 Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 --- src/xz/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xz/util.c b/src/xz/util.c index e5485bee..bb9b86ad 100644 --- a/src/xz/util.c +++ b/src/xz/util.c @@ -12,6 +12,10 @@ #include "private.h" #include +#if defined(_WIN32) && !defined(__CYGWIN__) +# include +#endif + /// Buffers for uint64_to_str() and uint64_to_nicestr() static char bufs[4][128];