Hack in a fake version of "access".

It seems access is unimplemented in the ps3 toolchain.
This commit is contained in:
Bill Currie 2012-08-18 11:45:26 +09:00
parent 836215357a
commit d074f4a983

View file

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