mirror of https://github.com/BOINC/boinc.git
Make the client simulator build again.
Note: any file that refers to HAVE_* symbols should include config.h
This commit is contained in:
parent
7c8386b100
commit
6e5b7da699
|
@ -39,6 +39,7 @@ OBJS = \
|
|||
net_stats.o \
|
||||
pers_file_xfer.o \
|
||||
project.o \
|
||||
project_list.o \
|
||||
result.o \
|
||||
rr_sim.o \
|
||||
sandbox.o \
|
||||
|
@ -54,6 +55,7 @@ OBJS = \
|
|||
../lib/crypt.o \
|
||||
../lib/filesys.o \
|
||||
../lib/hostinfo.o \
|
||||
../lib/keyword.o \
|
||||
../lib/md5.o \
|
||||
../lib/md5_file.o \
|
||||
../lib/mfile.o \
|
||||
|
@ -64,6 +66,7 @@ OBJS = \
|
|||
../lib/opencl_boinc.o \
|
||||
../lib/parse.o \
|
||||
../lib/prefs.o \
|
||||
../lib/project_init.o \
|
||||
../lib/proxy_info.o \
|
||||
../lib/shmem.o \
|
||||
../lib/str_util.o \
|
||||
|
|
|
@ -385,7 +385,7 @@ bool CLIENT_STATE::simulate_rpc(PROJECT* p) {
|
|||
app_versions[i]->dont_use = false;
|
||||
}
|
||||
|
||||
work_fetch.request_string(buf2);
|
||||
work_fetch.request_string(buf2, sizeof(buf2));
|
||||
sprintf(buf, "RPC to %s: %s<br>", p->project_name, buf2);
|
||||
html_msg += buf;
|
||||
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "miofile.h"
|
||||
#include "error_numbers.h"
|
||||
#include "str_util.h"
|
||||
|
|
|
@ -20,18 +20,13 @@
|
|||
#ifndef BOINC_STR_REPLACE_H
|
||||
#define BOINC_STR_REPLACE_H
|
||||
|
||||
#if (defined(HAVE_CONFIG_H) || defined(__APPLE__))
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
// strlcpy and strlcat guarantee NULL-terminated result
|
||||
// (unlike strncpy and strncat)
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue