From be5a78931bd12f12b0f8e7fc4730728df71aa240 Mon Sep 17 00:00:00 2001 From: onryo Date: Fri, 27 Sep 2024 22:40:46 +0200 Subject: [PATCH] Fix fatal error when compiling for windows on dev --- src/sync.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sync.cpp b/src/sync.cpp index 632c5562e..16c4c86a2 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -25,9 +25,14 @@ #include #include +#ifdef _WIN32 +#include +#include +#else #include /* backtrace, backtrace_symbols_fd */ -#include /* STDOUT_FILENO */ +#endif +#include /* STDOUT_FILENO */ #ifdef DEBUG_LOCKCONTENTION void PrintLockContention(const char* pszName, const char* pszFile, int nLine)