From 88248b76afc6e0f01fccec3f92c4fed81d980382 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 27 Jan 2010 22:31:13 +0000 Subject: [PATCH] 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 --- libavformat/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))