CONSOLE: Handle unimplemented features for console toolchains.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user