mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Improve linker check for Winsock library name.
On Windows CE, the Winsock library name is ws2, not ws2_32. patch by Martin Storsjö, martin martin st Originally committed as revision 19431 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1764e4bc5a
commit
f4c1387249
6
configure
vendored
6
configure
vendored
@ -2216,9 +2216,11 @@ if enabled network; then
|
|||||||
if check_header arpa/inet.h ; then
|
if check_header arpa/inet.h ; then
|
||||||
check_func closesocket
|
check_func closesocket
|
||||||
elif check_header winsock2.h ; then
|
elif check_header winsock2.h ; then
|
||||||
network_extralibs="-lws2_32"
|
check_func_headers winsock2.h closesocket -lws2 && \
|
||||||
|
network_extralibs="-lws2" || \
|
||||||
|
{ check_func_headers winsock2.h closesocket -lws2_32 && \
|
||||||
|
network_extralibs="-lws2_32"; }
|
||||||
check_type ws2tcpip.h socklen_t
|
check_type ws2tcpip.h socklen_t
|
||||||
check_func_headers winsock2.h closesocket
|
|
||||||
else
|
else
|
||||||
disable network
|
disable network
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user