mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
Hack in a fake version of "access".
It seems access is unimplemented in the ps3 toolchain.
This commit is contained in:
parent
836215357a
commit
d074f4a983
1 changed files with 6 additions and 1 deletions
|
@ -192,7 +192,12 @@ Sys_FileTime (const char *path)
|
|||
if (_access (path, R_OK) == 0)
|
||||
return 0;
|
||||
# else
|
||||
# error do not know how to check access
|
||||
int fd;
|
||||
|
||||
if ((fd = open (path, O_RDONLY)) >= 0) {
|
||||
close (fd);
|
||||
return 0;
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue