From 238766be6b4107c0c6b8d3e69b2bc480cbad46a2 Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Tue, 14 Feb 2017 11:17:09 -0800 Subject: [PATCH] windows: changes to build with VS2015 --- CMakeLists.txt | 2 +- lwsws/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1df48fb..1063bf2 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 d93742d..f23c24a 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 -- 2.7.4