|
|
@@ -2112,11 +2112,6 @@ case $target_os in |
|
|
{ check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; } |
|
|
{ check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; } |
|
|
;; |
|
|
;; |
|
|
mingw32*) |
|
|
mingw32*) |
|
|
# Adding _WIN32_WINNT=0x0501 makes functions that require |
|
|
|
|
|
# XP visible and thus may make it binary incompatible with |
|
|
|
|
|
# earlier versions. Set --target-os=mingw32-prexp if this |
|
|
|
|
|
# isn't desired. |
|
|
|
|
|
test $target_os = "mingw32" && add_cflags -D_WIN32_WINNT=0x0501 |
|
|
|
|
|
if test $target_os = "mingw32ce"; then |
|
|
if test $target_os = "mingw32ce"; then |
|
|
disable network |
|
|
disable network |
|
|
else |
|
|
else |
|
|
@@ -2576,8 +2571,6 @@ if enabled network; then |
|
|
network_extralibs="-lws2" || \ |
|
|
network_extralibs="-lws2" || \ |
|
|
{ check_func_headers winsock2.h closesocket -lws2_32 && \ |
|
|
{ check_func_headers winsock2.h closesocket -lws2_32 && \ |
|
|
network_extralibs="-lws2_32"; } |
|
|
network_extralibs="-lws2_32"; } |
|
|
# getaddrinfo is available if _WIN32_WINNT >= 0x0501 is defined |
|
|
|
|
|
check_func_headers ws2tcpip.h getaddrinfo $network_extralibs |
|
|
|
|
|
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 ipv6_mreq" |
|
|
check_type ws2tcpip.h "struct ipv6_mreq" |
|
|
|