From bfb46759d55baa34d63d044ccc1d4b72e6187475 Mon Sep 17 00:00:00 2001 From: tpglitch <123958345+tpglitch@users.noreply.github.com> Date: Mon, 9 Nov 2026 15:33:40 -0600 Subject: [PATCH] fix(windows): use narrow gia_strerror variant This should fix a CMake compilation error on Windows. --- client/src/uart/uart_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/uart/uart_win32.c b/client/src/uart/uart_win32.c index 5ad304514..abcaddd1b 100644 --- a/client/src/uart/uart_win32.c +++ b/client/src/uart/uart_win32.c @@ -226,7 +226,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) { int s = getaddrinfo(addrStr, portStr, &info, &addr); if (s != 0) { - PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerror(s)); + PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerrorA(s)); freeaddrinfo(addr); free(addrPortStr); free(sp);