Commit b5290e75 authored by Tony Castley's avatar Tony Castley

Updated to compile on BeOS.

parent 2215be5f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* netutils.c: various network functions * netutils.c: various network functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.c,v 1.37 2001/06/02 01:09:03 sam Exp $ * $Id: netutils.c,v 1.38 2001/10/03 02:20:39 tcastley Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr> * Benoit Steiner <benny@via.ecp.fr>
...@@ -108,9 +108,15 @@ static int GetAdapterInfo ( int i_adapter, char *psz_string ); ...@@ -108,9 +108,15 @@ static int GetAdapterInfo ( int i_adapter, char *psz_string );
int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port, int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
char * psz_broadcast ) char * psz_broadcast )
{ {
char psz_hostname[INPUT_MAX_SOURCE_LENGTH]; char psz_hostname[INPUT_MAX_SOURCE_LENGTH];
struct hostent * p_hostent; struct hostent * p_hostent;
#if defined( SYS_BEOS )
intf_ErrMsg( "error: channel changing is not yet supported under BeOS" );
return( 1 );
#endif
/* Reset struct */ /* Reset struct */
memset( p_socket, 0, sizeof( struct sockaddr_in ) ); memset( p_socket, 0, sizeof( struct sockaddr_in ) );
p_socket->sin_family = AF_INET; /* family */ p_socket->sin_family = AF_INET; /* family */
...@@ -161,8 +167,14 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port, ...@@ -161,8 +167,14 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
*****************************************************************************/ *****************************************************************************/
int network_BuildRemoteAddr( struct sockaddr_in * p_socket, char * psz_server ) int network_BuildRemoteAddr( struct sockaddr_in * p_socket, char * psz_server )
{ {
struct hostent * p_hostent; struct hostent * p_hostent;
#if defined( SYS_BEOS )
intf_ErrMsg( "error: channel changing is not yet supported under BeOS" );
return( 1 );
#endif
/* Reset structure */ /* Reset structure */
memset( p_socket, 0, sizeof( struct sockaddr_in ) ); memset( p_socket, 0, sizeof( struct sockaddr_in ) );
p_socket->sin_family = AF_INET; /* family */ p_socket->sin_family = AF_INET; /* family */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment