2010-02-26 13:46:26 -05:00
|
|
|
$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
|
2009-12-26 03:49:08 -05:00
|
|
|
@@ -22,6 +22,7 @@
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
|
|
|
+#include <pthread.h>
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
#include <getopt.h>
|
2010-02-26 13:46:26 -05:00
|
|
|
@@ -38,6 +39,10 @@
|
2009-12-26 03:49:08 -05:00
|
|
|
#define RD_INCOMPLETE 2
|
|
|
|
|
|
|
|
#define PACKET_SIZE 1024*1024
|
|
|
|
+
|
|
|
|
+#ifndef MSG_NOSIGNAL
|
|
|
|
+#define MSG_NOSIGNAL 0
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#define InitSockets() {\
|