From f1c7c87c9334c780c011bed5ca76c0340d514e0d Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Sat, 4 May 2013 14:25:59 +0200 Subject: [PATCH] Add missing include for "struct iovec" which is defined in sys/uio.h on FreeBSD and also on Linux. tvheadend-3.4/src/muxer/tvh/mkmux.c: In function 'mk_write_to_fd': tvheadend-3.4/src/muxer/tvh/mkmux.c:347: error: invalid application of 'sizeof' to incomplete type 'struct iovec' tvheadend-3.4/src/muxer/tvh/mkmux.c:351: error: invalid use of undefined type 'struct iovec' tvheadend-3.4/src/muxer/tvh/mkmux.c:351: error: dereferencing pointer to incomplete type tvheadend-3.4/src/muxer/tvh/mkmux.c:352: error: invalid use of undefined type 'struct iovec' tvheadend-3.4/src/muxer/tvh/mkmux.c:352: error: dereferencing pointer to incomplete type cc1: warnings being treated as errors tvheadend-3.4/src/muxer/tvh/mkmux.c:358: warning: implicit declaration of function 'writev' tvheadend-3.4/src/muxer/tvh/mkmux.c:364: error: invalid use of undefined type 'struct iovec' --- src/muxer/tvh/mkmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/muxer/tvh/mkmux.c b/src/muxer/tvh/mkmux.c index 19880a38..947fa9f1 100644 --- a/src/muxer/tvh/mkmux.c +++ b/src/muxer/tvh/mkmux.c @@ -19,6 +19,7 @@ #include +#include #include #include #include