From 3b2372bff1237529ec03698f53d2ba06ae8ea00a Mon Sep 17 00:00:00 2001
From: "Ronald S. Bultje" <rsbultje@gmail.com>
Date: Wed, 20 Jan 2010 17:24:23 +0000
Subject: [PATCH] =?UTF-8?q?Add=20a=20check=20for=20struct=20sockaddr->sa?=
 =?UTF-8?q?=5Flen,=20which=20is=20an=20indication=20of=20whether=20the=20s?=
 =?UTF-8?q?ystem=20wants=20a=20length=20entry=20in=20all=20socket=20struct?=
 =?UTF-8?q?ures=20or=20not.=20Patch=20by=20Martin=20Storsj=C3=B6=20<$first?=
 =?UTF-8?q?name=20$firstname=20st>.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Originally committed as revision 21351 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index e3f109b06c5..0f136054a8b 100755
--- a/configure
+++ b/configure
@@ -1032,6 +1032,7 @@ HAVE_LIST="
     soundcard_h
     poll_h
     struct_addrinfo
+    struct_sockaddr_sa_len
     struct_sockaddr_storage
     sys_mman_h
     sys_resource_h
@@ -2505,6 +2506,7 @@ if enabled network; then
     check_type "sys/types.h sys/socket.h" socklen_t
     check_type netdb.h "struct addrinfo"
     check_type "sys/types.h sys/socket.h" "struct sockaddr_storage"
+    check_struct "sys/types.h sys/socket.h" "struct sockaddr" sa_len
     # Prefer arpa/inet.h over winsock2
     if check_header arpa/inet.h ; then
         check_func closesocket
@@ -2516,6 +2518,7 @@ if enabled network; then
         check_type ws2tcpip.h socklen_t
         check_type ws2tcpip.h "struct addrinfo"
         check_type ws2tcpip.h "struct sockaddr_storage"
+        check_struct winsock2.h "struct sockaddr" sa_len
     else
         disable network
     fi
-- 
GitLab