diff options
author | Mike Pall <mike> | 2012-06-09 20:54:34 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-06-09 20:54:34 +0200 |
commit | 37be8a54785b893f531679adb0b479a426938504 (patch) | |
tree | 933b0320e158361c69fa5f4332247d201eb02187 /src/lib_io.c | |
parent | 9f443e8b8919e094100bf1eb94981aec905be783 (diff) | |
download | luajit-37be8a54785b893f531679adb0b479a426938504.tar.gz luajit-37be8a54785b893f531679adb0b479a426938504.tar.bz2 luajit-37be8a54785b893f531679adb0b479a426938504.zip |
CONSOLE: Handle unimplemented features for console toolchains.
Diffstat (limited to 'src/lib_io.c')
-rw-r--r-- | src/lib_io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib_io.c b/src/lib_io.c index 6078e74d..90bc863b 100644 --- a/src/lib_io.c +++ b/src/lib_io.c | |||
@@ -412,7 +412,11 @@ LJLIB_CF(io_popen) | |||
412 | LJLIB_CF(io_tmpfile) | 412 | LJLIB_CF(io_tmpfile) |
413 | { | 413 | { |
414 | IOFileUD *iof = io_file_new(L); | 414 | IOFileUD *iof = io_file_new(L); |
415 | #if LJ_TARGET_PS3 | ||
416 | iof->fp = NULL; errno = ENOSYS; | ||
417 | #else | ||
415 | iof->fp = tmpfile(); | 418 | iof->fp = tmpfile(); |
419 | #endif | ||
416 | return iof->fp != NULL ? 1 : io_pushresult(L, 0, NULL); | 420 | return iof->fp != NULL ? 1 : io_pushresult(L, 0, NULL); |
417 | } | 421 | } |
418 | 422 | ||