X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finput%2Finput_network.c;h=f69244df819ebe0f14081e19f9cd6d947a6387bb;hb=ac08ae30411f18fccf735b337927ee7abd04a009;hp=578171181594af0e0ced0ab428153ea2abe75e34;hpb=ec9bf58ab3453691a110fcf144d05e18f8b39183;p=vlc diff --git a/src/input/input_network.c b/src/input/input_network.c index 5781711815..f69244df81 100644 --- a/src/input/input_network.c +++ b/src/input/input_network.c @@ -32,17 +32,17 @@ #include /* errno */ #include /* "input_network.h" */ -#ifdef SYS_BSD +#if defined(SYS_BSD) || defined(SYS_BEOS) #include /* struct sockaddr */ #endif #include /* servent, getservbyname(), hostent, gethostbyname() */ #include /* sockaddr_in, htons(), htonl() */ +#include "threads.h" #include "common.h" #include "config.h" #include "mtime.h" -#include "threads.h" #include "netutils.h" #include "input.h" @@ -96,6 +96,7 @@ int input_NetworkOpen( input_thread_t *p_input ) return( 1 ); } +#ifndef SYS_BEOS /* Increase the receive buffer size to 1/2MB (8Mb/s during 1/2s) to avoid * packet loss caused by scheduling problems */ i_socket_option = 524288; @@ -109,6 +110,7 @@ int input_NetworkOpen( input_thread_t *p_input ) close( p_input->i_handle ); return( 1 ); } +#endif /* SYS_BEOS */ /* * Bind the socket