summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Socket.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-16 21:08:17 +0100
committermadmaxoft <github@xoft.cz>2014-01-16 21:08:17 +0100
commit4da88182912e9e4cf2bc2532309943b9c3c018f9 (patch)
tree93a176dce81df4ebe7024a449ac79dc1f6b3806c /src/OSSupport/Socket.h
parentProtocol 1.7: Unknown packets are dumped to log in Debug mode. (diff)
downloadcuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar.gz
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar.bz2
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar.lz
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar.xz
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.tar.zst
cuberite-4da88182912e9e4cf2bc2532309943b9c3c018f9.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Socket.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/OSSupport/Socket.h b/src/OSSupport/Socket.h
index 81bfd28fc..b86560de8 100644
--- a/src/OSSupport/Socket.h
+++ b/src/OSSupport/Socket.h
@@ -5,6 +5,18 @@
+// Windows and MacOSX don't have the MSG_NOSIGNAL flag
+#if ( \
+ defined(_WIN32) || \
+ (defined(__APPLE__) && defined(__MACH__)) \
+)
+ #define MSG_NOSIGNAL (0)
+#endif
+
+
+
+
+
class cSocket
{
public: