[vlc-devel] [PATCH 05/15] newlib/nacl: Include sys/uio for iovec

Julian Scheel julian at jusst.de
Wed Mar 8 15:55:22 CET 2017


The iovec struct is defined in a dedicated header for newlib. Include
this one through fixups to avoid cluttering vlc core code with newlib
specific includes.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 include/vlc_fixups.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 9b1edcaa0e..4020bf823b 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -402,6 +402,12 @@ struct msghdr
 };
 #endif
 
+#ifdef _NEWLIB_VERSION
+/* iovec is defined in sys/uio.h for newlib */
+#include <sys/uio.h>
+#define IOV_MAX 255
+#endif
+
 #ifndef HAVE_RECVMSG
 struct msghdr;
 ssize_t recvmsg(int, struct msghdr *, int);
-- 
2.12.0



More information about the vlc-devel mailing list