Browse Source

Fix compilation

Alex Szpakowski 3 years ago
parent
commit
9eec60e605
2 changed files with 6 additions and 0 deletions
  1. 4 0
      src/CMakeLists.txt
  2. 2 0
      src/lua/main.cpp

+ 4 - 0
src/CMakeLists.txt

@@ -128,6 +128,10 @@ if (USE_ANDROID_BACKEND)
 	message(STATUS "Ensure to add the Java files to your project too!")
 endif ()
 
+if (USE_WINSOCK)
+	set(HTTPS_USE_WINSOCK ON)
+endif ()
+
 ### Generate config-generated.h
 add_compile_definitions(HTTPS_HAVE_CONFIG_GENERATED_H)
 configure_file (

+ 2 - 0
src/lua/main.cpp

@@ -77,6 +77,8 @@ static int w_request(lua_State *L)
 		lua_pop(L, 1);
 	}
 
+	HTTPSClient::Reply reply;
+
 	try
 	{
 		reply = request(req);