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 #ifdef _WIN32
#include "version.h" #include "version.h"
#include "win_util.h"
#else #else
#include "config.h" #include "config.h"
#include <cstdlib> #include <cstdlib>
@ -1321,6 +1322,7 @@ double boinc_elapsed_time() {
return running_interrupt_count*TIMER_PERIOD; return running_interrupt_count*TIMER_PERIOD;
} }
#ifndef _WIN32
static void parallel_master(int child_pid) { static void parallel_master(int child_pid) {
char buf[MSG_CHANNEL_SIZE]; char buf[MSG_CHANNEL_SIZE];
while (1) { while (1) {
@ -1347,10 +1349,12 @@ static void parallel_master(int child_pid) {
} }
} }
} }
#endif
int boinc_init_parallel() { int boinc_init_parallel() {
#ifdef _WIN32 #ifdef _WIN32
is_parallel = true; is_parallel = true;
return boinc_init();
#else #else
BOINC_OPTIONS options; BOINC_OPTIONS options;
boinc_options_defaults(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); msgs.push_front(mdp);
#ifndef SIM
if (priority == MSG_USER_ALERT) { if (priority == MSG_USER_ALERT) {
NOTICE n; NOTICE n;
n.description = message; n.description = message;
@ -89,6 +90,7 @@ void MESSAGE_DESCS::insert(PROJECT* p, int priority, int now, char* message) {
strcpy(n.category, "client"); strcpy(n.category, "client");
notices.append(n); notices.append(n);
} }
#endif
} }
void MESSAGE_DESCS::write(int seqno, MIOFILE& fout) { void MESSAGE_DESCS::write(int seqno, MIOFILE& fout) {