[vlc-commits] src: struct iovec is defined in sys/uio.h
Richard Diamond
git at videolan.org
Wed Jun 29 16:32:15 CEST 2016
vlc | branch: master | Richard Diamond <wichard at vitalitystudios.com> | Thu Mar 24 14:33:35 2016 -0500| [9e857807ea28b56369927ec0c95922ae1bf7e1ba] | committer: Hugo Beauzée-Luyssen
src: struct iovec is defined in sys/uio.h
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e857807ea28b56369927ec0c95922ae1bf7e1ba
---
configure.ac | 2 +-
src/network/tls.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 341c2de..3345027 100644
--- a/configure.ac
+++ b/configure.ac
@@ -789,7 +789,7 @@ dnl Check for headers
dnl
dnl POSIX
-AC_CHECK_HEADERS([arpa/inet.h pthread.h search.h sys/shm.h sys/socket.h])
+AC_CHECK_HEADERS([arpa/inet.h pthread.h search.h sys/shm.h sys/socket.h sys/uio.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
#include <sys/types.h>
diff --git a/src/network/tls.c b/src/network/tls.c
index 31387f6..4a4ab67 100644
--- a/src/network/tls.c
+++ b/src/network/tls.c
@@ -35,6 +35,9 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include "libvlc.h"
More information about the vlc-commits
mailing list