mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
Check for struct addrinfo availability. Patch by Martin Storsjö
<$firstname()$firstname,st>. Originally committed as revision 21144 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7e43f74a37
commit
c001861351
3
configure
vendored
3
configure
vendored
@ -989,6 +989,7 @@ HAVE_LIST="
|
|||||||
socklen_t
|
socklen_t
|
||||||
soundcard_h
|
soundcard_h
|
||||||
poll_h
|
poll_h
|
||||||
|
struct_addrinfo
|
||||||
sys_mman_h
|
sys_mman_h
|
||||||
sys_resource_h
|
sys_resource_h
|
||||||
sys_select_h
|
sys_select_h
|
||||||
@ -2449,6 +2450,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"
|
||||||
# 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
|
||||||
@ -2458,6 +2460,7 @@ if enabled network; then
|
|||||||
{ check_func_headers winsock2.h closesocket -lws2_32 && \
|
{ check_func_headers winsock2.h closesocket -lws2_32 && \
|
||||||
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"
|
||||||
else
|
else
|
||||||
disable network
|
disable network
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user