summaryrefslogtreecommitdiffstats
path: root/stream/tcp.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:33:35 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:33:35 +0000
commit3b222d68b0df4b3cc6d8271700703f495913b0ca (patch)
tree30a6a22e70354009b2b77bbcc727a00cbda532c0 /stream/tcp.c
parentbe5f5c7046f896ca16d7b4656c192f64c6d2e226 (diff)
downloadmpv-3b222d68b0df4b3cc6d8271700703f495913b0ca.tar.bz2
mpv-3b222d68b0df4b3cc6d8271700703f495913b0ca.tar.xz
HAVE_ATON --> HAVE_INET_ATON to match FFmpeg and give it a 0/1 value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28435 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tcp.c')
-rw-r--r--stream/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tcp.c b/stream/tcp.c
index 69072f80fa..a47280739a 100644
--- a/stream/tcp.c
+++ b/stream/tcp.c
@@ -116,7 +116,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) {
memset(&server_address, 0, sizeof(server_address));
#ifndef HAVE_WINSOCK2_H
-#ifdef HAVE_ATON
+#if HAVE_INET_ATON
if (inet_aton(host, our_s_addr)!=1)
#else
if (inet_pton(af, host, our_s_addr)!=1)
@@ -164,7 +164,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) {
return TCP_ERROR_FATAL;
}
-#if defined(HAVE_ATON) || defined(HAVE_WINSOCK2_H)
+#if HAVE_INET_ATON || defined(HAVE_WINSOCK2_H)
strncpy( buf, inet_ntoa( *((struct in_addr*)our_s_addr) ), 255);
#else
inet_ntop(af, our_s_addr, buf, 255);