File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4009,6 +4009,12 @@ AS_CASE([$ac_sys_system],
4009
4009
[ OSSAUDIODEV_LIBS=""]
4010
4010
)
4011
4011
4012
+ dnl On MINGW, you need to link against ws2_32 and iphlpapi for sockets to work
4013
+ AS_CASE ( [ $ac_sys_system] ,
4014
+ [ MINGW] , [ SOCKET_LIBS="-lws2_32 -liphlpapi"] ,
4015
+ [ SOCKET_LIBS=""]
4016
+ )
4017
+
4012
4018
dnl detect sqlite3 from Emscripten emport
4013
4019
PY_CHECK_EMSCRIPTEN_PORT([ LIBSQLITE3] , [ -sUSE_SQLITE3] )
4014
4020
@@ -7458,7 +7464,9 @@ PY_STDLIB_MOD([mmap],
7458
7464
PY_STDLIB_MOD([ _socket] ,
7459
7465
[ ] , m4_flatten ( [ test "$ac_cv_header_sys_socket_h" = "yes"
7460
7466
-a "$ac_cv_header_sys_types_h" = "yes"
7461
- -a "$ac_cv_header_netinet_in_h" = "yes"] ) )
7467
+ -a "$ac_cv_header_netinet_in_h" = "yes"
7468
+ -o "$MACHDEP" = "win32"] ) ,
7469
+ [ ] , [ $SOCKET_LIBS] )
7462
7470
7463
7471
dnl platform specific extensions
7464
7472
PY_STDLIB_MOD([ grp] , [ ] , [ test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes] )
You can’t perform that action at this time.
0 commit comments