]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
iOS: Disable os.execute() when building for iOS >= 8.0.
authorMike Pall <mike>
Sat, 24 Oct 2015 17:02:15 +0000 (19:02 +0200)
committerMike Pall <mike>
Sat, 24 Oct 2015 17:02:15 +0000 (19:02 +0200)
Thanks to Vyacheslav Egorov.

src/lib_os.c
src/lj_arch.h

index bb5a141e3cd1ba01235ebd392932ec413711563e..762bb591732ae0130be7da798857241ada499f96 100644 (file)
@@ -36,7 +36,7 @@
 
 LJLIB_CF(os_execute)
 {
-#if LJ_TARGET_CONSOLE
+#if LJ_NO_SYSTEM
 #if LJ_52
   errno = ENOSYS;
   return luaL_fileresult(L, 0, NULL);
index 9a6d43051bf0fdc9559da8d99ab962750b413e12..f1a1160fdfc221cee56d7710321828a16b253b43 100644 (file)
 #if defined(__symbian__)
 #define LUAJIT_NO_EXP2
 #endif
+#if LJ_TARGET_CONSOLE || (LJ_TARGET_IOS && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0)
+#define LJ_NO_SYSTEM           1
+#endif
 
 #if defined(LUAJIT_NO_UNWIND) || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4
 #define LJ_NO_UNWIND           1