Commit d1f676b8 authored by Martin Storsjö's avatar Martin Storsjö

Fix compilation on FreeBSD, use AF_UNSPEC instead of PF_UNSPEC

Originally committed as revision 25416 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fcc7f404
......@@ -106,7 +106,7 @@ static int sap_write_header(AVFormatContext *s)
if (!announce_addr[0]) {
struct addrinfo hints, *ai = NULL;
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_family = AF_UNSPEC;
if (getaddrinfo(host, NULL, &hints, &ai)) {
av_log(s, AV_LOG_ERROR, "Unable to resolve %s\n", host);
ret = AVERROR(EIO);
......
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