From: Bernhard Froehlich Date: Sat, 4 May 2013 12:25:59 +0000 (+0200) Subject: Add missing include for "struct iovec" which is defined in sys/uio.h X-Git-Tag: v3.9~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1c7c87c9334c780c011bed5ca76c0340d514e0d;p=thirdparty%2Ftvheadend.git 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' --- diff --git a/src/muxer/tvh/mkmux.c b/src/muxer/tvh/mkmux.c index 19880a384..947fa9f17 100644 --- a/src/muxer/tvh/mkmux.c +++ b/src/muxer/tvh/mkmux.c @@ -19,6 +19,7 @@ #include +#include #include #include #include