windows: changes to build with VS2015
authorJoel Winarske <joel.winarske@gmail.com>
Tue, 14 Feb 2017 19:17:09 +0000 (11:17 -0800)
committerAndy Green <andy@warmcat.com>
Sat, 18 Feb 2017 09:27:22 +0000 (17:27 +0800)
CMakeLists.txt
lwsws/main.c

index 1df48fb..1063bf2 100644 (file)
@@ -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)
index d93742d..f23c24a 100644 (file)
@@ -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