mirror of https://github.com/BOINC/boinc.git
Mac build fixes
This commit is contained in:
parent
918b7c8f13
commit
befd835e09
|
@ -65,10 +65,11 @@ void killGfxApp(pid_t thePID) {
|
|||
char userName[64];
|
||||
RPC_CLIENT *rpc;
|
||||
int retval;
|
||||
string msg;
|
||||
|
||||
chdir("/Library/Application Support/BOINC Data");
|
||||
safe_strcpy(buf, "");
|
||||
read_gui_rpc_password(buf);
|
||||
read_gui_rpc_password(buf, msg);
|
||||
|
||||
rpc = new RPC_CLIENT;
|
||||
if (rpc->init(NULL)) { // Initialize communications with Core Client
|
||||
|
|
|
@ -308,6 +308,7 @@ void doBoinc_Sleep(double seconds) {
|
|||
CScreensaver::CScreensaver() {
|
||||
struct ss_periods periods;
|
||||
char saved_dir[MAXPATHLEN];
|
||||
string msg;
|
||||
|
||||
m_dwBlankScreen = 0;
|
||||
m_dwBlankTime = 0;
|
||||
|
@ -334,7 +335,7 @@ CScreensaver::CScreensaver() {
|
|||
if (gIsCatalina) {
|
||||
getcwd(saved_dir, sizeof(saved_dir));
|
||||
chdir("/Library/Application Support/BOINC Data");
|
||||
read_gui_rpc_password(passwd_buf);
|
||||
read_gui_rpc_password(passwd_buf, msg);
|
||||
chdir(saved_dir);
|
||||
|
||||
CFStringRef cf_gUserName = SCDynamicStoreCopyConsoleUser(NULL, NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue