]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
sockets: fixed compiler warning on Windows x32
authorEvgeny Grin <k2k@narod.ru>
Fri, 26 Nov 2021 11:08:22 +0000 (14:08 +0300)
committerEvgeny Grin <k2k@narod.ru>
Fri, 26 Nov 2021 16:00:31 +0000 (19:00 +0300)
Signed-off-by: Evgeny Grin <k2k@narod.ru>
lib/system/sockets.c

index 57c14f63b8c192b614475536720dde45bf1b544c..e1d6fd1842d62e7eabc3a24d621d9f1818a524d4 100644 (file)
@@ -105,12 +105,14 @@ system_writev(gnutls_transport_ptr_t ptr, const giovec_t * iovec,
                        to_send_cnt++;
                        break;
                }
+#ifdef _WIN64
                if (iovec[to_send_cnt].iov_len > ULONG_MAX) {
                        /* WSASend() limitation */
                        bufs[to_send_cnt].len = ULONG_MAX;
                        to_send_cnt++;
                        break;
                }
+#endif
                bufs[to_send_cnt].len =
                        (unsigned long) iovec[to_send_cnt].iov_len;
                to_send_bytes += iovec[to_send_cnt].iov_len;