Skip to content

Commit

Permalink
Windows compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Aug 31, 2023
1 parent a2e7444 commit 5305114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Shared/TcpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ TcpSocket::TcpSocket(unsigned short port)
// Initialize Winsock, returning on failure
if (!initWinsock()) return;

#ifndef _WIN32
// Don't crash on pipe errors
signal(SIGPIPE, SIG_IGN);
// TODO: how can we do that on Windows?
#endif


// Set up client address info
struct addrinfo hints = {0};
Expand Down

0 comments on commit 5305114

Please sign in to comment.