diff --git a/CMakeLists.txt b/CMakeLists.txt index 1df48fbc..1063bf28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -947,7 +947,7 @@ endif() if (WINCE) list(APPEND LIB_LIST ws2.lib) elseif (WIN32) - list(APPEND LIB_LIST ws2_32.lib) + list(APPEND LIB_LIST ws2_32.lib userenv.lib psapi.lib iphlpapi.lib) endif() if (UNIX) diff --git a/lwsws/main.c b/lwsws/main.c index d93742de..f23c24ac 100644 --- a/lwsws/main.c +++ b/lwsws/main.c @@ -39,8 +39,8 @@ int fork(void) { - fprintf(stderr, "Sorry Windows doesn't support fork()."); - exit(0); + fprintf(stderr, "Sorry Windows doesn't support fork().\n"); + return 0; } #endif