Mercurial > mplayer.hg
diff stream/tcp.c @ 27359:d788e177a35e
Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;
CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff.
author | diego |
---|---|
date | Fri, 01 Aug 2008 20:28:58 +0000 |
parents | e7c989f7a7c9 |
children | 5a30f5bc23a0 |
line wrap: on
line diff
--- a/stream/tcp.c Fri Aug 01 18:10:01 2008 +0000 +++ b/stream/tcp.c Fri Aug 01 20:28:58 2008 +0000 @@ -116,7 +116,7 @@ memset(&server_address, 0, sizeof(server_address)); #ifndef HAVE_WINSOCK2 -#ifdef CONFIG_ATON +#ifdef HAVE_ATON if (inet_aton(host, our_s_addr)!=1) #else if (inet_pton(af, host, our_s_addr)!=1) @@ -164,7 +164,7 @@ return TCP_ERROR_FATAL; } -#if defined(CONFIG_ATON) || defined(HAVE_WINSOCK2) +#if defined(HAVE_ATON) || defined(HAVE_WINSOCK2) strncpy( buf, inet_ntoa( *((struct in_addr*)our_s_addr) ), 255); #else inet_ntop(af, our_s_addr, buf, 255);