Skip to content

Commit 038548e

Browse files
committed
Fixed Windows builds
1 parent 7cad355 commit 038548e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clickhouse/base/socket.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ ssize_t Poll(struct pollfd* fds, int nfds, int timeout) noexcept {
144144
#endif
145145
}
146146

147+
#ifndef INVALID_SOCKET
147148
const SOCKET INVALID_SOCKET = -1;
149+
#endif
148150

149151
void CloseSocket(SOCKET socket) {
150152
if (socket == INVALID_SOCKET)

0 commit comments

Comments
 (0)