CONSOLE: Handle unimplemented features for console toolchains.

This commit is contained in:
Mike Pall
2012-06-09 20:54:34 +02:00
parent 9f443e8b89
commit 37be8a5478
6 changed files with 41 additions and 2 deletions

View File

@@ -412,7 +412,11 @@ LJLIB_CF(io_popen)
LJLIB_CF(io_tmpfile)
{
IOFileUD *iof = io_file_new(L);
#if LJ_TARGET_PS3
iof->fp = NULL; errno = ENOSYS;
#else
iof->fp = tmpfile();
#endif
return iof->fp != NULL ? 1 : io_pushresult(L, 0, NULL);
}