From: Bernhard Froehlich Date: Sat, 4 May 2013 12:10:42 +0000 (+0200) Subject: Add missing includes for shutdown(2) and SHUT_RDWR on FreeBSD. X-Git-Tag: v3.9~46^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e5d63e81635ddaec46fc0a4077105bc8e5fa9b;p=thirdparty%2Ftvheadend.git Add missing includes for shutdown(2) and SHUT_RDWR on FreeBSD. tvheadend-3.4/src/cwc.c: In function 'cwc_session': tvheadend-3.4/src/cwc.c:1139: warning: implicit declaration of function 'shutdown' tvheadend-3.4/src/cwc.c:1139: error: 'SHUT_RDWR' undeclared (first use in this function) tvheadend-3.4/src/cwc.c:1139: error: (Each undeclared identifier is reported only once tvheadend-3.4/src/cwc.c:1139: error: for each function it appears in.) tvheadend-3.4/src/cwc.c: In function 'cwc_entry_update': tvheadend-3.4/src/cwc.c:2369: error: 'SHUT_RDWR' undeclared --- diff --git a/src/cwc.c b/src/cwc.c index 60d2cb116..c4e3e5902 100644 --- a/src/cwc.c +++ b/src/cwc.c @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include "tvheadend.h"