diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e6f1d2b4..d2fc9c869 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ endif() message(STATUS "VCPKG TRIPLET: ${VCPKG_TARGET_TRIPLET}") # Don't specify languages yet in case we need to bump the cmake version -project(EternalTCP VERSION 6.2.0 LANGUAGES NONE) +project(EternalTCP VERSION 6.2.1 LANGUAGES NONE) if(WIN32) message(STATUS "Windows detected. Bumping up cmake version.") diff --git a/src/base/Headers.hpp b/src/base/Headers.hpp index c5f9ba43f..e9b06a860 100644 --- a/src/base/Headers.hpp +++ b/src/base/Headers.hpp @@ -73,6 +73,7 @@ inline int close(int fd) { return ::closesocket(fd); } #include #include #include +#include #include #include #include @@ -88,7 +89,8 @@ inline int close(int fd) { return ::closesocket(fd); } #include #endif -#if defined(__APPLE__) && __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 +#if defined(__APPLE__) && \ + __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 #if __has_include() #include namespace fs = boost::filesystem; @@ -353,9 +355,8 @@ inline bool waitOnSocketData(int fd) { } else { FATAL_FAIL(selectResult); } - } else { - return FD_ISSET(fd, &fdset); } + return FD_ISSET(fd, &fdset); } inline string genRandomAlphaNum(int len) {