mirror of https://github.com/BOINC/boinc.git
Avoid calling accept() since it is not present on Windows
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@706 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
parent
f8d85ebbff
commit
1d3a84bedf
|
@ -150,10 +150,10 @@ int DC_initClient(void)
|
|||
|
||||
/* Parse the config file if the master sent one */
|
||||
buf = DC_resolveFileName(DC_FILE_IN, DC_CONFIG_FILE);
|
||||
if (buf && !access(buf, R_OK))
|
||||
if (buf)
|
||||
{
|
||||
ret = _DC_parseCfg(buf);
|
||||
if (ret)
|
||||
if (ret && ret != DC_ERR_SYSTEM)
|
||||
return ret;
|
||||
}
|
||||
free(buf);
|
||||
|
|
|
@ -25,11 +25,6 @@ enum {
|
|||
LOG_CRIT
|
||||
};
|
||||
|
||||
/* The access() macros are missing on Windows */
|
||||
#define X_OK 1
|
||||
#define W_OK 2
|
||||
#define R_OK 4
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue