Skip to content

Commit 63b2adc

Browse files
committed
Merge branch 'master' into release
2 parents 0b92c47 + 113fb23 commit 63b2adc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ endif()
7373
message(STATUS "VCPKG TRIPLET: ${VCPKG_TARGET_TRIPLET}")
7474

7575
# Don't specify languages yet in case we need to bump the cmake version
76-
project(EternalTCP VERSION 6.2.0 LANGUAGES NONE)
76+
project(EternalTCP VERSION 6.2.1 LANGUAGES NONE)
7777

7878
if(WIN32)
7979
message(STATUS "Windows detected. Bumping up cmake version.")

src/base/Headers.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ inline int close(int fd) { return ::closesocket(fd); }
7373
#include <locale>
7474
#include <memory>
7575
#include <mutex>
76+
#include <optional>
7677
#include <set>
7778
#include <sstream>
7879
#include <streambuf>
@@ -88,7 +89,8 @@ inline int close(int fd) { return ::closesocket(fd); }
8889
#include <Availability.h>
8990
#endif
9091

91-
#if defined(__APPLE__) && __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15
92+
#if defined(__APPLE__) && \
93+
__MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15
9294
#if __has_include(<boost/filesystem.hpp>)
9395
#include <boost/filesystem.hpp>
9496
namespace fs = boost::filesystem;
@@ -353,9 +355,8 @@ inline bool waitOnSocketData(int fd) {
353355
} else {
354356
FATAL_FAIL(selectResult);
355357
}
356-
} else {
357-
return FD_ISSET(fd, &fdset);
358358
}
359+
return FD_ISSET(fd, &fdset);
359360
}
360361

361362
inline string genRandomAlphaNum(int len) {

0 commit comments

Comments
 (0)