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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to