aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib_os.c2
-rw-r--r--src/lj_arch.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib_os.c b/src/lib_os.c
index 7b5873a5..37d7d5be 100644
--- a/src/lib_os.c
+++ b/src/lib_os.c
@@ -39,7 +39,7 @@
39 39
40LJLIB_CF(os_execute) 40LJLIB_CF(os_execute)
41{ 41{
42#if LJ_TARGET_CONSOLE 42#if LJ_NO_SYSTEM
43#if LJ_52 43#if LJ_52
44 errno = ENOSYS; 44 errno = ENOSYS;
45 return luaL_fileresult(L, 0, NULL); 45 return luaL_fileresult(L, 0, NULL);
diff --git a/src/lj_arch.h b/src/lj_arch.h
index b72dbcca..c66a11c8 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -498,6 +498,9 @@
498#if defined(__symbian__) || LJ_TARGET_WINDOWS 498#if defined(__symbian__) || LJ_TARGET_WINDOWS
499#define LUAJIT_NO_EXP2 499#define LUAJIT_NO_EXP2
500#endif 500#endif
501#if LJ_TARGET_CONSOLE || (LJ_TARGET_IOS && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0)
502#define LJ_NO_SYSTEM 1
503#endif
501 504
502#if defined(LUAJIT_NO_UNWIND) || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4 505#if defined(LUAJIT_NO_UNWIND) || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4
503#define LJ_NO_UNWIND 1 506#define LJ_NO_UNWIND 1