From 211b6b6b065a43fc8726907d94a4a2c7f01f702b Mon Sep 17 00:00:00 2001
From: gatecat <gatecat@ds0.me>
Date: Fri, 1 Oct 2021 12:37:12 +0100
Subject: Fix Cygwin build

Signed-off-by: gatecat <gatecat@ds0.me>
---
 common/log.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/log.cc b/common/log.cc
index e77fd11a..8b1ad43b 100644
--- a/common/log.cc
+++ b/common/log.cc
@@ -59,7 +59,7 @@ std::string vstringf(const char *fmt, va_list ap)
     std::string string;
     char *str = NULL;
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
     int sz = 64 + strlen(fmt), rc;
     while (1) {
         va_list apc;
-- 
cgit v1.2.3