$OpenBSD: patch-streams_c,v 1.2 2010/02/26 18:46:26 sthen Exp $ --- streams.c.orig Sun Jan 10 03:28:13 2010 +++ streams.c Tue Jan 12 12:55:19 2010 @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -38,6 +39,10 @@ #define RD_INCOMPLETE 2 #define PACKET_SIZE 1024*1024 + +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif #ifdef WIN32 #define InitSockets() {\