From 5c35a8a30a65ad47d4a47c437c15610894499dc8 Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Thu, 29 Aug 2024 13:17:39 -0700 Subject: [PATCH] win build fix --- samples/wsl_wrapper/wsl_wrapper.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/samples/wsl_wrapper/wsl_wrapper.cpp b/samples/wsl_wrapper/wsl_wrapper.cpp index 371dab7c9a..01596da450 100644 --- a/samples/wsl_wrapper/wsl_wrapper.cpp +++ b/samples/wsl_wrapper/wsl_wrapper.cpp @@ -45,6 +45,7 @@ #include "util.h" #include "win_util.h" #include "boinc_api.h" +#include "app_ipc.h" using std::string; @@ -167,7 +168,6 @@ void poll_client_msgs() { } int main(int argc, char** argv) { - string distro; const char *os_name_regexp=".*", *os_version_regexp=".*", *pass_thru=""; for (int i=1; idistro_name; } - char main_cmd[256]; - sprintf(cmd, "./main %s", pass_thru) - if (launch(distro.c_str(), main_cmd)) { + char main_cmd[256]; + sprintf(main_cmd, "./main %s", pass_thru); + if (launch(distro_name.c_str(), main_cmd)) { printf("launch failed\n"); exit(1); }