Commit 1b8cf49f authored by rbultje's avatar rbultje

Check for struct sockaddr_storage. Patch by Martin Storsjö

<$firstname()$firstname,st>.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21148 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 471f7fa2
...@@ -990,6 +990,7 @@ HAVE_LIST=" ...@@ -990,6 +990,7 @@ HAVE_LIST="
soundcard_h soundcard_h
poll_h poll_h
struct_addrinfo struct_addrinfo
struct_sockaddr_storage
sys_mman_h sys_mman_h
sys_resource_h sys_resource_h
sys_select_h sys_select_h
...@@ -2451,6 +2452,7 @@ texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html ...@@ -2451,6 +2452,7 @@ texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
if enabled network; then if enabled network; then
check_type "sys/types.h sys/socket.h" socklen_t check_type "sys/types.h sys/socket.h" socklen_t
check_type netdb.h "struct addrinfo" check_type netdb.h "struct addrinfo"
check_type sys/socket.h "struct sockaddr_storage"
# Prefer arpa/inet.h over winsock2 # Prefer arpa/inet.h over winsock2
if check_header arpa/inet.h ; then if check_header arpa/inet.h ; then
check_func closesocket check_func closesocket
...@@ -2461,6 +2463,7 @@ if enabled network; then ...@@ -2461,6 +2463,7 @@ if enabled network; then
network_extralibs="-lws2_32"; } network_extralibs="-lws2_32"; }
check_type ws2tcpip.h socklen_t check_type ws2tcpip.h socklen_t
check_type ws2tcpip.h "struct addrinfo" check_type ws2tcpip.h "struct addrinfo"
check_type ws2tcpip.h "struct sockaddr_storage"
else else
disable network disable network
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment