diff options
Diffstat (limited to 'src/lib_os.c')
-rw-r--r-- | src/lib_os.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib_os.c b/src/lib_os.c index e968d5d5..38aada67 100644 --- a/src/lib_os.c +++ b/src/lib_os.c | |||
@@ -70,6 +70,10 @@ LJLIB_CF(os_rename) | |||
70 | 70 | ||
71 | LJLIB_CF(os_tmpname) | 71 | LJLIB_CF(os_tmpname) |
72 | { | 72 | { |
73 | #if LJ_TARGET_PS3 | ||
74 | lj_err_caller(L, LJ_ERR_OSUNIQF); | ||
75 | return 0; | ||
76 | #else | ||
73 | #if LJ_TARGET_POSIX | 77 | #if LJ_TARGET_POSIX |
74 | char buf[15+1]; | 78 | char buf[15+1]; |
75 | int fp; | 79 | int fp; |
@@ -86,6 +90,7 @@ LJLIB_CF(os_tmpname) | |||
86 | #endif | 90 | #endif |
87 | lua_pushstring(L, buf); | 91 | lua_pushstring(L, buf); |
88 | return 1; | 92 | return 1; |
93 | #endif | ||
89 | } | 94 | } |
90 | 95 | ||
91 | LJLIB_CF(os_getenv) | 96 | LJLIB_CF(os_getenv) |