From: David O. <da...@qc...> - 2017-04-04 16:46:56
|
Hi, This recent change means I no longer build naviserver tip on Debian 8.6 due to the compiler complaining the following sockfile.c switch statement has the same case twice. https://bitbucket.org/naviserver/naviserver/commits/1fadec70fa7612f9a541116a1a2e72b69a9dacf7#chg-nsd/sockfile.c The following gets round it for me, but not sure if this is the best way around it: --- a/nsd/sockfile.c Mon Apr 03 07:04:01 2017 +0200 +++ b/nsd/sockfile.c Tue Apr 04 17:43:07 2017 +0100 @@ -232,9 +232,10 @@ if (sent == -1) { switch (errno) { - case EAGAIN: /* fall through */ - case NS_EWOULDBLOCK: +#if EAGAIN != NS_EWOULDBLOCK + case NS_EWOULDBLOCK: +#endif if (Ns_SockTimedWait(sock->sock, NS_SOCK_WRITE, timeoutPtr) == NS_OK) { sent = sendfile(sock->sock, fd, &offset, toSend); } -- David |