diff options
author | Mike Pall <mike> | 2012-06-10 01:38:44 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-06-10 02:01:25 +0200 |
commit | b8f5727ab4ab5656b19cdb2c71a92611836b5458 (patch) | |
tree | afff6234da61ae8d3a513359a68c88cdb7b6159c /src/lib_os.c | |
parent | 37be8a54785b893f531679adb0b479a426938504 (diff) | |
download | luajit-b8f5727ab4ab5656b19cdb2c71a92611836b5458.tar.gz luajit-b8f5727ab4ab5656b19cdb2c71a92611836b5458.tar.bz2 luajit-b8f5727ab4ab5656b19cdb2c71a92611836b5458.zip |
CONSOLE: Fix PS3 build.
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) |