Commit 88248b76 authored by Ronald S. Bultje's avatar Ronald S. Bultje

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
parent 881b5b80
...@@ -53,7 +53,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags) ...@@ -53,7 +53,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
return AVERROR(EINVAL); return AVERROR(EINVAL);
memset(&hints, 0, sizeof(hints)); memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC; hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;
snprintf(portstr, sizeof(portstr), "%d", port); snprintf(portstr, sizeof(portstr), "%d", port);
if (getaddrinfo(hostname, portstr, &hints, &ai)) if (getaddrinfo(hostname, portstr, &hints, &ai))
......
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