From d1f676b8d455f095f2bd9b803894e0e89d072603 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Fri, 8 Oct 2010 18:07:40 +0000
Subject: [PATCH] Fix compilation on FreeBSD, use AF_UNSPEC instead of
 PF_UNSPEC

Originally committed as revision 25416 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/sapenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index 3b7ff2d7939..7c56ddbe39f 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -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);
-- 
GitLab