From 5330013dc3ca927361891f6f83a4ca9613c9e571 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 11 Aug 2021 13:45:48 +0200 Subject: [PATCH] possible compiler fix by not using SD_BOTH --- include/Compat.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/Compat.h b/include/Compat.h index a923771..27430bf 100644 --- a/include/Compat.h +++ b/include/Compat.h @@ -21,10 +21,9 @@ inline void CloseSocketProper(int TheSocket) { // ======================= WIN32 ======================= #ifdef WIN32 -#include -#include +#include "TSentry.h" inline void CloseSocketProper(SOCKET TheSocket) { - shutdown(TheSocket, SD_BOTH); + shutdown(TheSocket, 2); // 2 == SD_BOTH closesocket(TheSocket); } #endif // WIN32