diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index b52d3275f8..360ebfa567 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -61,6 +61,7 @@ #ifdef _WIN32 #include "version.h" +#include "win_util.h" #else #include "config.h" #include @@ -1321,6 +1322,7 @@ double boinc_elapsed_time() { return running_interrupt_count*TIMER_PERIOD; } +#ifndef _WIN32 static void parallel_master(int child_pid) { char buf[MSG_CHANNEL_SIZE]; while (1) { @@ -1347,10 +1349,12 @@ static void parallel_master(int child_pid) { } } } +#endif int boinc_init_parallel() { #ifdef _WIN32 is_parallel = true; + return boinc_init(); #else BOINC_OPTIONS options; boinc_options_defaults(options); diff --git a/client/client_msgs.cpp b/client/client_msgs.cpp index 8783f76b9f..2756b77b75 100644 --- a/client/client_msgs.cpp +++ b/client/client_msgs.cpp @@ -79,6 +79,7 @@ void MESSAGE_DESCS::insert(PROJECT* p, int priority, int now, char* message) { } msgs.push_front(mdp); +#ifndef SIM if (priority == MSG_USER_ALERT) { NOTICE n; n.description = message; @@ -89,6 +90,7 @@ void MESSAGE_DESCS::insert(PROJECT* p, int priority, int now, char* message) { strcpy(n.category, "client"); notices.append(n); } +#endif } void MESSAGE_DESCS::write(int seqno, MIOFILE& fout) {