From: Alex Rousskov Date: Wed, 7 Jul 2010 17:39:21 +0000 (-0600) Subject: Define MSG_NOSIGNAL if it is missing. X-Git-Tag: SQUID_3_2_0_1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a85732019bd66c735de57f7a0ef52d6810c3d43;p=thirdparty%2Fsquid.git Define MSG_NOSIGNAL if it is missing. Solaris and possibly others do not provide this optional optimization. --- 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_