Commit 9e3be9be authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

gnutls: use vectorized sends on all platforms

parent 96868b69
......@@ -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);
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);
tls->sys = session;
tls->writev = gnutls_Send;
tls->recv = gnutls_Recv;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment