support MACH architecture

This commit is contained in:
john30
2015-11-07 14:52:20 +01:00
parent fab47d3358
commit 040e10ff5f
+6
View File
@@ -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).
*/