diff --git a/CMakeLists.txt b/CMakeLists.txt index 777b9cc32f..1222688003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -851,6 +851,9 @@ if(LIBRETRO) if(APPLE) target_sources(${PROJECT_NAME} PRIVATE shell/libretro/oslib_apple.mm) endif() + if(WIN32) + target_link_libraries(${PROJECT_NAME} PRIVATE mswsock) + endif() endif() target_sources(${PROJECT_NAME} PRIVATE diff --git a/core/windows/fault_handler.cpp b/core/windows/fault_handler.cpp index b4923ebbe1..ceed7f0057 100644 --- a/core/windows/fault_handler.cpp +++ b/core/windows/fault_handler.cpp @@ -24,7 +24,14 @@ static PVOID vectoredHandler; static LONG (WINAPI *prevExceptionHandler)(EXCEPTION_POINTERS *ep); +#ifndef LIBRETRO const char *getThreadName(); +#else +// TODO +static const char *getThreadName() { + return ""; +} +#endif static void readContext(const EXCEPTION_POINTERS *ep, host_context_t &context) {