Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpanderson committed Aug 24, 2024
1 parent e47664b commit 00d5e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/sched_msgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class SCHED_MSG_LOG : public MSG_LOG {
const char* v_format_kind(int kind) const;
bool v_message_wanted(int kind) const;
public:
enum { MSG_CRITICAL=1, MSG_WARNING, MSG_NORMAL, MSG_DEBUG, MSG_DETAIL };
SCHED_MSG_LOG(): MSG_LOG(stderr) { debug_level = MSG_NORMAL; }
void set_file(FILE* f) {output=f;}
void set_debug_level(int new_level) { debug_level = new_level; }
Expand Down
4 changes: 3 additions & 1 deletion lib/wslinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.

#ifdef _WIN64
#include "win_util.h"
#endif

#include "wslinfo.h"

Expand Down Expand Up @@ -130,7 +132,7 @@ int WSL_CMD::setup() {
out_write = NULL;

if (!pWslLaunch) {
wsl_lib = LoadLibrary("wslapi.dll");
wsl_lib = LoadLibraryA("wslapi.dll");
if (!wsl_lib) return -1;
pWslLaunch = (PWslLaunch)GetProcAddress(wsl_lib, "WslLaunch");
if (!pWslLaunch) return -1;
Expand Down

0 comments on commit 00d5e30

Please sign in to comment.