--- a/libs/cobalt/CMakeLists.txt
+++ b/libs/cobalt/CMakeLists.txt
@@ -60,6 +60,12 @@
             Boost::throw_exception
             Boost::variant2
     )
+    if(MINGW)
+        target_link_libraries(boost_cobalt
+            PRIVATE
+            ws2_32
+        )
+    endif()
 
     target_compile_definitions(boost_cobalt
             PUBLIC BOOST_COBALT_NO_LIB=1
