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). */