gst_writev: define UIO_MAXIOV on iOS/OSX

Apparently it's only seton iOS/OSX if defined(KERNEL).
This commit is contained in:
Tim-Philipp Müller 2015-06-11 23:06:26 +01:00
parent e08db722f5
commit f190d01e0d

View file

@ -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 <sys/uio.h> 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)
{