From 040e10ff5fbfc2c743546716f663cbdb1a051558 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 7 Nov 2015 14:52:20 +0100 Subject: [PATCH] support MACH architecture --- src/lib/utils/tcpsocket.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/utils/tcpsocket.h b/src/lib/utils/tcpsocket.h index cc4d61d3..0c04a117 100644 --- a/src/lib/utils/tcpsocket.h +++ b/src/lib/utils/tcpsocket.h @@ -28,6 +28,12 @@ using namespace std; +#ifdef __MACH__ +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL SO_NOSIGPIPE +#endif +#endif + /** * class for low level tcp socket operations. (open, close, send, receive). */