# HG changeset patch # User rbultje # Date 1264631473 0 # Node ID 0980c09b05c1f40479ba6de3f7c1d8d2415b3050 # Parent be39b68919abc83df04fdd4a9ce20cb21c5b27eb Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is). diff -r be39b68919ab -r 0980c09b05c1 tcp.c --- a/tcp.c Wed Jan 27 19:37:52 2010 +0000 +++ b/tcp.c Wed Jan 27 22:31:13 2010 +0000 @@ -53,7 +53,7 @@ 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))