Commit 6deb8533 authored by rbultje's avatar rbultje

Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21490 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 869641e7
...@@ -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