From 2882ca2c9461928865759ecaedca1bff955581bf Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 10 Dec 2013 10:04:04 -0800 Subject: [PATCH] client emulator: build fixes --- client/app.cpp | 2 ++ client/client_state.cpp | 2 ++ client/makefile_sim | 1 + client/sim_util.cpp | 1 - 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/app.cpp b/client/app.cpp index 4d31743d92..a7fe77ae5c 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -1018,6 +1018,7 @@ void ACTIVE_TASK::set_task_state(int val, const char* where) { } } +#ifndef SIM #ifdef NEW_CPU_THROTTLE #define THROTTLE_PERIOD 1. #ifdef _WIN32 @@ -1054,3 +1055,4 @@ void* throttler(void*) { return 0; } #endif +#endif diff --git a/client/client_state.cpp b/client/client_state.cpp index 709224aa40..33f4087e91 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -70,10 +70,12 @@ using std::max; CLIENT_STATE gstate; COPROCS coprocs; +#ifndef SIM #ifdef NEW_CPU_THROTTLE THREAD_LOCK client_mutex; THREAD throttle_thread; #endif +#endif CLIENT_STATE::CLIENT_STATE() : lookup_website_op(&gui_http), diff --git a/client/makefile_sim b/client/makefile_sim index 6aee9dd07e..b259144764 100644 --- a/client/makefile_sim +++ b/client/makefile_sim @@ -60,6 +60,7 @@ OBJS = \ ../lib/msg_log.o \ ../lib/network.o \ ../lib/notice.o \ + ../lib/opencl_boinc.o \ ../lib/parse.o \ ../lib/prefs.o \ ../lib/proxy_info.o \ diff --git a/client/sim_util.cpp b/client/sim_util.cpp index ec15ee261e..bd8c323339 100644 --- a/client/sim_util.cpp +++ b/client/sim_util.cpp @@ -101,7 +101,6 @@ void show_message(PROJ_AM *p, char* msg, int priority, bool, const char*) { } APP_CLIENT_SHM::APP_CLIENT_SHM() {} -GRAPHICS_MSG::GRAPHICS_MSG() {} int FILE_INFO::verify_file(bool, bool, bool) {return 0;}