]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add missing includes for FreeBSD.
authorBernhard Froehlich <decke@bluelife.at>
Sun, 2 Jun 2013 10:03:26 +0000 (12:03 +0200)
committerBernhard Froehlich <decke@bluelife.at>
Sun, 2 Jun 2013 10:03:26 +0000 (12:03 +0200)
src/tcp.c:38: error: 'AF_INET' undeclared here (not in a function)
src/tcp.c:99: error: 'SOCK_STREAM' undeclared (first use in this function)
src/tcp.c:121: error: 'AF_INET6' undeclared (first use in this function)
src/tcp.c:159: error: 'SOL_SOCKET' undeclared (first use in this function)
src/tcp.c:159: error: 'SO_ERROR' undeclared (first use in this function)

src/tcp.c

index a176bdacda3f24779061a1b5c76f6c7b4e44679d..e498c0180f023a0cdf5f7d7e9dca31602cde14ef 100644 (file)
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -18,6 +18,8 @@
 
 #include <pthread.h>
 #include <netdb.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <poll.h>
 #include <assert.h>
 #include <stdio.h>