[vlc-commits] compat: use proper check for the sys/uio.h availability
Steve Lhomme
git at videolan.org
Thu Apr 12 14:21:20 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 12 14:16:54 2018 +0200| [83797ed76500db799879daf1e838f935e6eab66b] | committer: Steve Lhomme
compat: use proper check for the sys/uio.h availability
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83797ed76500db799879daf1e838f935e6eab66b
---
compat/recvmsg.c | 2 ++
compat/sendmsg.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/compat/recvmsg.c b/compat/recvmsg.c
index 6b95deff5f..1c348fcee2 100644
--- a/compat/recvmsg.c
+++ b/compat/recvmsg.c
@@ -91,7 +91,9 @@ ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
+#endif
ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
{
diff --git a/compat/sendmsg.c b/compat/sendmsg.c
index 28d2eb098b..0b08ce0942 100644
--- a/compat/sendmsg.c
+++ b/compat/sendmsg.c
@@ -81,7 +81,9 @@ ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
+#endif
ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
{
More information about the vlc-commits
mailing list