[Spice-commits] server/tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 21 10:54:18 UTC 2020


 server/tests/test-websocket.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1fbb58ac52b041c8f4fcb6a069ce8edb7273e1ce
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Apr 15 14:32:10 2020 +0100

    Fix compatibility with SOL_TCP and Darwin
    
    Under Darwin SOL_TCP is not defined. Use IPPROTO_TCP instead.
    Other part of SPICE server uses this constant instead already.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/tests/test-websocket.c b/server/tests/test-websocket.c
index 432aeee5..2115411e 100644
--- a/server/tests/test-websocket.c
+++ b/server/tests/test-websocket.c
@@ -200,7 +200,7 @@ handle_client(int new_sock)
     }
 
     int enable = 1;
-    setsockopt(new_sock, SOL_TCP, TCP_NODELAY, (const void *) &enable, sizeof(enable));
+    setsockopt(new_sock, IPPROTO_TCP, TCP_NODELAY, (const void *) &enable, sizeof(enable));
 
     // wait header
     wait_for(new_sock, POLLIN);


More information about the Spice-commits mailing list