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); }