Collapse the MacOS case with Solaris & NetBSD in VTCP_Check()

parent e5391c5f
......@@ -610,18 +610,14 @@ VTCP_Check(ssize_t a)
if (errno == EPROTO)
return (1);
#endif
#if (defined (__SVR4) && defined (__sun)) || defined (__NetBSD__)
#if (defined (__SVR4) && defined (__sun)) || \
defined (__NetBSD__) || \
defined (__APPLE__)
/*
* Solaris returns EINVAL if the other end unexpectedly reset the
* connection.
* This is a bug in Solaris and documented behaviour on NetBSD.
*/
if (errno == EINVAL || errno == ETIMEDOUT)
return (1);
#elif defined (__APPLE__)
/*
* MacOS returns EINVAL if the other end unexpectedly reset
* Solaris and MacOS returns EINVAL if the other end unexpectedly reset
* the connection.
*
* On NetBSD it is documented behaviour.
*/
if (errno == EINVAL)
return (1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment