compile fixes

svn path=/trunk/boinc/; revision=20056
This commit is contained in:
David Anderson 2010-01-01 05:12:03 +00:00
parent 9e1644e588
commit da1476f47d
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,7 @@
#ifdef _WIN32
#include "version.h"
#include "win_util.h"
#else
#include "config.h"
#include <cstdlib>
@ -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);

View File

@ -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) {