diff options
author | Fneufneu <fneufneu@xbmc.org> | 2011-01-31 20:48:09 +0100 |
---|---|---|
committer | spiff <spiff@xbmc.org> | 2011-03-19 09:17:52 +0100 |
commit | da5ac3641cc0145e4ab6be4d951754c52b56392e (patch) | |
tree | 9716b0fc54fc7c1dce45eab10216d1d9cde37d9b /lib/libhts | |
parent | 8a86e96b5b005e1b4fdaf5d093bb7d128f2aba4a (diff) |
added: FreeBSD support in libhts
Diffstat (limited to 'lib/libhts')
-rw-r--r-- | lib/libhts/net_posix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libhts/net_posix.c b/lib/libhts/net_posix.c index cfa22f865e..173e115d3c 100644 --- a/lib/libhts/net_posix.c +++ b/lib/libhts/net_posix.c @@ -24,6 +24,10 @@ #define SOL_TCP IPPROTO_TCP #endif #include "OSXGNUReplacements.h" +#elif defined(__FreeBSD__) +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#endif #else #include <sys/epoll.h> #endif @@ -40,6 +44,10 @@ #include <netinet/tcp.h> #include <arpa/inet.h> +#if defined(__FreeBSD__) +#include <sys/socket.h> +#endif + #include "net.h" |