aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-27 22:31:13 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-01-27 22:31:13 +0000
commit88248b76afc6e0f01fccec3f92c4fed81d980382 (patch)
treec7f0a87744d45b01257dcbe176a5873887f52f63 /libavformat/tcp.c
parent881b5b80da6bf63d01db5baa1db602a20f64b12c (diff)
downloadffmpeg-88248b76afc6e0f01fccec3f92c4fed81d980382.tar.gz
Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).
Originally committed as revision 21490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r--libavformat/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index ffcc6ff13c..a8cf80fbff 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -53,7 +53,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
return AVERROR(EINVAL);
memset(&hints, 0, sizeof(hints));
- hints.ai_family = PF_UNSPEC;
+ hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
snprintf(portstr, sizeof(portstr), "%d", port);
if (getaddrinfo(hostname, portstr, &hints, &ai))