gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 02/04: quic: fix build on systems w/o sin_len


From: gnunet
Subject: [gnunet] 02/04: quic: fix build on systems w/o sin_len
Date: Sun, 10 Sep 2023 15:14:09 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit b872b28be4801d8e451d74bf141484ba577342fe
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Sep 10 12:56:19 2023 +0200

    quic: fix build on systems w/o sin_len
---
 src/transport/gnunet-communicator-quic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/transport/gnunet-communicator-quic.c 
b/src/transport/gnunet-communicator-quic.c
index 06146995b..1225a3817 100644
--- a/src/transport/gnunet-communicator-quic.c
+++ b/src/transport/gnunet-communicator-quic.c
@@ -817,7 +817,9 @@ udp_address_to_sockaddr (const char *bindto, socklen_t 
*sock_len)
     {
       v4.sin_family = AF_INET;
       v4.sin_port = htons ((uint16_t) port);
+#if HAVE_SOCKADDR_IN_SIN_LEN
       v4.sin_len = sizeof(struct sockaddr_in);
+#endif
       in = GNUNET_memdup (&v4, sizeof(struct sockaddr_in));
       *sock_len = sizeof(struct sockaddr_in);
       GNUNET_free (cp);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]