Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 27 Jan 2010 22:31:13 +0000 (22:31 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 27 Jan 2010 22:31:13 +0000 (22:31 +0000)
Originally committed as revision 21490 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/tcp.c

index ffcc6ff..a8cf80f 100644 (file)
@@ -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))