diff --git a/core/src/utils/networking.cpp b/core/src/utils/networking.cpp index 8b5b8f72..5ee56ce9 100644 --- a/core/src/utils/networking.cpp +++ b/core/src/utils/networking.cpp @@ -312,6 +312,8 @@ namespace net { winsock_init = true; } assert(winsock_init); +#else + signal(SIGPIPE, SIG_IGN); #endif // Create a socket @@ -358,6 +360,8 @@ namespace net { winsock_init = true; } assert(winsock_init); +#else + signal(SIGPIPE, SIG_IGN); #endif // Create a socket @@ -410,6 +414,8 @@ namespace net { winsock_init = true; } assert(winsock_init); +#else + signal(SIGPIPE, SIG_IGN); #endif // Create a socket diff --git a/core/src/utils/networking.h b/core/src/utils/networking.h index 8c4bf375..e985b76a 100644 --- a/core/src/utils/networking.h +++ b/core/src/utils/networking.h @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include #endif namespace net {