From e8925c8b99b6e495fa969db56977d7ddfec58ac7 Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Wed, 28 Dec 2022 10:43:02 +0800 Subject: [PATCH] Update tlcp_client.c --- tools/tlcp_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tlcp_client.c b/tools/tlcp_client.c index 2f3eaedd..c48504d6 100644 --- a/tools/tlcp_client.c +++ b/tools/tlcp_client.c @@ -186,7 +186,9 @@ bad: if (select((int)(conn.sock + 1), // WinSock2 select() ignore this arg &fds, NULL, NULL, NULL) < 0) { fprintf(stderr, "%s: select failed\n", prog); +#ifdef WIN32 fprintf(stderr, "WSAGetLastError = %u\n", WSAGetLastError()); +#endif goto end; }