From 2a85732019bd66c735de57f7a0ef52d6810c3d43 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Wed, 7 Jul 2010 11:39:21 -0600 Subject: [PATCH] Define MSG_NOSIGNAL if it is missing. Solaris and possibly others do not provide this optional optimization. --- src/fd.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fd.cc b/src/fd.cc index a22b38b7cd..e895d9c1f4 100644 --- a/src/fd.cc +++ b/src/fd.cc @@ -38,6 +38,14 @@ #include "SquidTime.h" #include "Debug.h" + +// Solaris and possibly others lack MSG_NOSIGNAL optimization +// TODO: move this into compat/? Use a dedicated compat file to avoid dragging +// sys/types.h and sys/socket.h into the rest of Squid?? +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif + int default_read_method(int, char *, int); int default_write_method(int, const char *, int); #ifdef _SQUID_MSWIN_ -- 2.47.3