From f5f9708f3b62f53bcdd5c9932fdcbe49ffe4f04b Mon Sep 17 00:00:00 2001 From: Benito Palacios Sanchez Date: Tue, 16 Oct 2018 23:18:57 +0200 Subject: [PATCH] Fix undefined MSG_NOSIGNAL Only Linux seems to support it. For other OSes we set to the default value 0x00 to do nothing. --- ext/native/base/buffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/native/base/buffer.cpp b/ext/native/base/buffer.cpp index 910a19bd7c..9b268976bb 100644 --- a/ext/native/base/buffer.cpp +++ b/ext/native/base/buffer.cpp @@ -13,6 +13,11 @@ #include #endif +#ifndef MSG_NOSIGNAL +// Default value to 0x00 (do nothing) in systems where it's not supported. +#define MSG_NOSIGNAL 0x00 +#endif + #include "base/logging.h" #include "base/timeutil.h" #include "file/fd_util.h"