# HG changeset patch # User bertrand # Date 1049972118 0 # Node ID f36b9dda3082cf2e02756806d88c9d708f9b510d # Parent 248c478a069916d5ac0c3354b5931fa4831ab0a7 Use inet_ntoa where inet_ntop is not available. diff -r 248c478a0699 -r f36b9dda3082 libmpdemux/network.c --- a/libmpdemux/network.c Thu Apr 10 08:34:43 2003 +0000 +++ b/libmpdemux/network.c Thu Apr 10 10:55:18 2003 +0000 @@ -253,7 +253,11 @@ return -2; } - inet_ntop(af, our_s_addr, buf, 255); +#ifdef USE_ATON + strncpy( buf, inet_ntoa( *((struct in_addr*)our_s_addr) ), 255); +#else + inet_ntop(af, our_s_addr, buf, 255); +#endif mp_msg(MSGT_NETWORK,MSGL_STATUS,"Connecting to server %s[%s]:%d ...\n", host, buf , port ); // Turn the socket as non blocking so we can timeout on the connection