diff options
Diffstat (limited to 'External/lua-5.2.3/src')
| -rw-r--r-- | External/lua-5.2.3/src/loslib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/External/lua-5.2.3/src/loslib.c b/External/lua-5.2.3/src/loslib.c index 052ba17..1f14873 100644 --- a/External/lua-5.2.3/src/loslib.c +++ b/External/lua-5.2.3/src/loslib.c @@ -78,6 +78,9 @@ static int os_execute (lua_State *L) { +#ifdef PLATFORM_IOS + return luaL_error(L, "os_execute is not available on iOS"); +#else const char *cmd = luaL_optstring(L, 1, NULL); int stat = system(cmd); if (cmd != NULL) @@ -86,6 +89,7 @@ static int os_execute (lua_State *L) { lua_pushboolean(L, stat); /* true if there is a shell */ return 1; } +#endif } |
