]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add missing includes for shutdown(2) and SHUT_RDWR on FreeBSD.
authorBernhard Froehlich <decke@bluelife.at>
Sat, 4 May 2013 12:10:42 +0000 (14:10 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 31 May 2013 13:19:25 +0000 (14:19 +0100)
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

src/cwc.c

index 60d2cb116d59ce11d57476a71a978090bd286dd3..c4e3e5902aae2e22ae37a677ceccefe53bea4b65 100644 (file)
--- a/src/cwc.c
+++ b/src/cwc.c
@@ -27,6 +27,8 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <ctype.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <openssl/des.h>
 
 #include "tvheadend.h"