WIN32: fix undefined reference to GetAdaptersAddresses on MinGW

This PR fixes issue #487.
This commit is contained in:
Carlo Bramini 2025-09-26 15:04:10 +02:00 committed by Dethrace Engineering Department
parent 26a5d1813f
commit 67a3da8eca
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ if(MSVC_42_FOR_RECCMP)
target_sources(harness PRIVATE os/null.c)
elseif(WIN32)
target_sources(harness PRIVATE os/windows.c)
target_link_libraries(harness PRIVATE dbghelp ws2_32)
target_link_libraries(harness PRIVATE dbghelp ws2_32 iphlpapi)
elseif(APPLE)
target_sources(harness PRIVATE os/macos.c)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")