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:
gombasg 2006-06-19 10:43:19 +00:00 committed by Adam Visegradi
parent f8d85ebbff
commit 1d3a84bedf
2 changed files with 2 additions and 7 deletions

View File

@ -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);

View File

@ -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