[vlc-devel] [PATCH v3 01/19] Include sys/uio.h where necessary
Dennis Hamester
dhamester at jusst.de
Mon Mar 20 17:57:18 CET 2017
All touched files use struct iovec without making sure sys/uio.h is
included.
---
modules/access/http/h2conn.c | 3 +++
modules/access/http/h2output.c | 3 +++
modules/access/rtp/input.c | 3 +++
modules/access/satip.c | 3 +++
modules/access/udp.c | 3 +++
modules/misc/gnutls.c | 3 +++
modules/video_output/flaschen.c | 3 +++
src/network/httpd.c | 3 +++
8 files changed, 24 insertions(+)
diff --git a/modules/access/http/h2conn.c b/modules/access/http/h2conn.c
index 6854aba6c9..f7e7b88e80 100644
--- a/modules/access/http/h2conn.c
+++ b/modules/access/http/h2conn.c
@@ -29,6 +29,9 @@
#ifdef HAVE_POLL
# include <poll.h>
#endif
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include <vlc_block.h>
#include <vlc_interrupt.h>
diff --git a/modules/access/http/h2output.c b/modules/access/http/h2output.c
index c082a1cef1..c171f1c51e 100644
--- a/modules/access/http/h2output.c
+++ b/modules/access/http/h2output.c
@@ -28,6 +28,9 @@
#ifdef HAVE_POLL
# include <poll.h>
#endif
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include <vlc_tls.h>
#include "h2frame.h"
diff --git a/modules/access/rtp/input.c b/modules/access/rtp/input.c
index 7e734c4d3d..cf9d9a7cad 100644
--- a/modules/access/rtp/input.c
+++ b/modules/access/rtp/input.c
@@ -35,6 +35,9 @@
#ifdef HAVE_POLL
# include <poll.h>
#endif
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include "rtp.h"
#ifdef HAVE_SRTP
diff --git a/modules/access/satip.c b/modules/access/satip.c
index 4abc487da8..ef7d1ebd0c 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -27,6 +27,9 @@
#include <unistd.h>
#include <ctype.h>
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
diff --git a/modules/access/udp.c b/modules/access/udp.c
index ced4f8efaa..bf5e3cbc60 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -46,6 +46,9 @@
#ifdef HAVE_POLL
# include <poll.h>
#endif
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
/*****************************************************************************
* Module descriptor
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 045fbd1727..f365a987ce 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -29,6 +29,9 @@
#include <errno.h>
#include <assert.h>
#include <unistd.h>
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
diff --git a/modules/video_output/flaschen.c b/modules/video_output/flaschen.c
index b3bb0a097e..5e2d3ed0b4 100644
--- a/modules/video_output/flaschen.c
+++ b/modules/video_output/flaschen.c
@@ -33,6 +33,9 @@
#endif
#include <errno.h>
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#include <vlc_common.h>
#include <vlc_fs.h>
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 19e1dad6da..233c01e89d 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -45,6 +45,9 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
+#ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+#endif
#ifdef HAVE_POLL
# include <poll.h>
--
2.12.0
More information about the vlc-devel
mailing list