Skip to content

Commit f352e40

Browse files
committed
FIX: Fix Windows build
1 parent 42cb778 commit f352e40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/detail/tcp_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class BlockingGuard {
6464
explicit BlockingGuard(databento::detail::Socket socket) : _fd{socket} {
6565
#ifdef _WIN32
6666
unsigned long mode = 1;
67-
::ioctlsocket(fd, FIONBIO, &mode);
67+
::ioctlsocket(_fd, FIONBIO, &mode);
6868
#else
6969
_original_flags = ::fcntl(_fd, F_GETFL, 0);
7070
::fcntl(_fd, F_SETFL, _original_flags | O_NONBLOCK);
@@ -74,7 +74,7 @@ class BlockingGuard {
7474
~BlockingGuard() {
7575
#ifdef _WIN32
7676
unsigned long mode = 0;
77-
::ioctlsocket(fd, FIONBIO, &mode);
77+
::ioctlsocket(_fd, FIONBIO, &mode);
7878
#else
7979
::fcntl(_fd, F_SETFL, _original_flags);
8080
#endif

0 commit comments

Comments
 (0)