From f190d01e0d23ca7e13c01e1fbc6e61caf64063db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 11 Jun 2015 23:06:26 +0100 Subject: [PATCH] gst_writev: define UIO_MAXIOV on iOS/OSX Apparently it's only seton iOS/OSX if defined(KERNEL). --- plugins/elements/gstelements_private.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/elements/gstelements_private.c b/plugins/elements/gstelements_private.c index fdc1370ce0..08855c8623 100644 --- a/plugins/elements/gstelements_private.c +++ b/plugins/elements/gstelements_private.c @@ -99,6 +99,12 @@ struct iovec #define FDSINK_MAX_ALLOCA_SIZE (64 * 1024) /* 64k */ #define FDSINK_MAX_MALLOC_SIZE ( 8 * 1024 * 1024) /* 8M */ +/* UIO_MAXIOV is documented in writev(2), but only + * declares it on osx/ios if defined(KERNEL) */ +#ifndef UIO_MAXIOV +#define UIO_MAXIOV 512 +#endif + static gssize gst_writev (gint fd, const struct iovec *iov, gint iovcnt, gsize total_bytes) {