* decoders.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: input.c,v 1.178 2002/02/26 17:22:12 xav Exp $
+ * $Id: input.c,v 1.179 2002/02/27 04:49:55 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
#ifdef WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
-#elif !defined( SYS_BEOS ) && !defined( SYS_NTO )
+#elif defined( SYS_NTO )
+ /* unsupported */
+#else
# include <netdb.h> /* hostent ... */
# include <sys/socket.h>
# include <netinet/in.h>
static void FileOpen ( input_thread_t *p_input );
static void StdOpen ( input_thread_t *p_input );
static void FileClose ( input_thread_t *p_input );
-#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
+#if !defined( SYS_NTO )
static void NetworkOpen ( input_thread_t *p_input );
static void HTTPOpen ( input_thread_t *p_input );
static void NetworkClose ( input_thread_t *p_input );
{
f.pf_open( p_input );
}
-#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
+#if !defined( SYS_NTO )
/* FIXME : this is waaaay too kludgy */
else if( ( strlen( p_input->p_source ) >= 10
&& !strncasecmp( p_input->p_source, "udpstream:", 10 ) )
{
f.pf_close( p_input );
}
-#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
+#if !defined( SYS_NTO )
/* Close stream */
else if( ( strlen( p_input->p_source ) > 10
&& !strncasecmp( p_input->p_source, "udpstream:", 10 ) )
return;
}
-#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
+#if !defined( SYS_NTO )
/*****************************************************************************
* NetworkOpen : open a network socket
*****************************************************************************/
intf_WarnMsg( 3, "input: successfully opened HTTP mode" );
}
-#endif /* !defined( SYS_BEOS ) && !defined( SYS_NTO ) */
+#endif /* !defined( SYS_NTO ) */
* netutils.c: various network functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: netutils.c,v 1.57 2002/02/24 20:51:10 gbazin Exp $
+ * $Id: netutils.c,v 1.58 2002/02/27 04:49:55 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
#ifdef WIN32
# include <winsock2.h>
-#elif !defined( SYS_BEOS )
+#else
# include <netdb.h> /* hostent ... */
# include <sys/socket.h> /* BSD: struct sockaddr */
# include <netinet/in.h> /* BSD: struct in_addr */
int network_BuildAddr( struct sockaddr_in * p_socket,
char * psz_address, int i_port )
{
-#if defined( SYS_BEOS )
+#if 0
intf_ErrMsg( "error: networking is not yet supported under BeOS" );
return( 1 );