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))