Fix undefined MSG_NOSIGNAL

Only Linux seems to support it.
For other OSes we set to the default value 0x00 to do nothing.
This commit is contained in:
Benito Palacios Sanchez committed 2018-10-16 23:18:57 +02:00
1 parent e221187561
commit f5f9708f3b
1 file changed
+5
+5
View File
@@ -13,6 +13,11 @@
#include <unistd.h>
#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"