diff --git a/netplay.c b/netplay.c index 391d88154e..cbb732752e 100644 --- a/netplay.c +++ b/netplay.c @@ -39,6 +39,7 @@ #include #include #include +#include #define CONST_CAST #define NONCONST_CAST #endif @@ -116,6 +117,8 @@ static bool init_socket(netplay_t *handle, const char *server, uint16_t port) WSACleanup(); return false; } +#else + signal(SIGPIPE, SIG_IGN); // Do not like SIGPIPE killing our app :( #endif struct addrinfo hints, *res = NULL;