From de073ef274d663e4c8a53556c0ea10bdc0b7b8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Mon, 25 Nov 2019 15:40:28 +0100 Subject: [PATCH] sockets: recvfrom: cast sockaddr_in* to sockaddr* explicitly Apparently CXX compiler needs this. Steps to reproduce the issue: ./configure --with-cxx && make With this fix the problem is gone. --- contrib/sockets/sockets.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sockets/sockets.lisp b/contrib/sockets/sockets.lisp index 26f0a1b12..7ab881769 100755 --- a/contrib/sockets/sockets.lisp +++ b/contrib/sockets/sockets.lisp @@ -528,7 +528,7 @@ safe_buffer_pointer(cl_object x, cl_index size) ecl_disable_interrupts(); len = recvfrom(#0, wincoerce(char*, safe_buffer_pointer(#1, #2)), - #2, flags, &sender, &addr_len); + #2, flags, (struct sockaddr *)&sender, &addr_len); ecl_enable_interrupts(); if (len >= 0) { if (type == t_vector) { #1->vector.fillp = len; }