[vlc-commits] gnutls: use vectorized sends on all platforms

Rémi Denis-Courmont git at videolan.org
Wed Jan 13 21:49:49 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 10 23:11:42 2016 +0200| [9e3be9be6c3ff28c9a0d77b51d9c71fd04b9cee4] | committer: Rémi Denis-Courmont

gnutls: use vectorized sends on all platforms

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e3be9be6c3ff28c9a0d77b51d9c71fd04b9cee4
---

 modules/misc/gnutls.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 8b3e224..0d0f737 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -130,7 +130,6 @@ static int gnutls_Error(vlc_tls_t *tls, int val)
     return -1;
 }
 
-#ifdef IOV_MAX
 static ssize_t vlc_gnutls_writev (gnutls_transport_ptr_t ptr,
                                   const giovec_t *giov, int iovcnt)
 {
@@ -157,7 +156,6 @@ static ssize_t vlc_gnutls_writev (gnutls_transport_ptr_t ptr,
 
     return sendmsg (fd, &msg, MSG_NOSIGNAL);
 }
-#endif
 
 static ssize_t gnutls_Send (vlc_tls_t *tls, const struct iovec *iov,
                             unsigned count)
@@ -278,9 +276,7 @@ static int gnutls_SessionOpen(vlc_tls_creds_t *creds, vlc_tls_t *tls, int type,
     }
 
     gnutls_transport_set_int (session, fd);
-#ifdef IOV_MAX
     gnutls_transport_set_vec_push_function (session, vlc_gnutls_writev);
-#endif
     tls->sys = session;
     tls->writev = gnutls_Send;
     tls->recv = gnutls_Recv;



More information about the vlc-commits mailing list