logClient windows needs SOCK_E*

This commit is contained in:
Michael Davidsaver
2019-11-12 18:42:02 -08:00
parent 6d8bf7c8ef
commit 76b9461ee8

View File

@@ -246,7 +246,7 @@ void epicsShareAPI logClientFlush ( logClientId id )
/* NOOP on Windows, fails on vxWorks */
errno = 0;
status = send ( pClient->sock, NULL, 0, 0 );
if (!(errno == ECONNRESET || errno == EPIPE)) status = 0;
if (!(errno == SOCK_ECONNRESET || errno == SOCK_EPIPE)) status = 0;
}
if ( status < 0 ) {