summaryrefslogtreecommitdiffstats
path: root/External/lua-5.2.3/src/loslib.c
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-02 03:12:03 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-02 03:12:03 +0000
commit8f79e7a5592a60040d647dff9a24cd63ff42393e (patch)
tree76d1f05d048cd13ceb2be9591f9587584dabda76 /External/lua-5.2.3/src/loslib.c
parentFixed MacOS build warnings (diff)
downloadDiligentTools-8f79e7a5592a60040d647dff9a24cd63ff42393e.tar.gz
DiligentTools-8f79e7a5592a60040d647dff9a24cd63ff42393e.zip
Enabled iOS build
Diffstat (limited to 'External/lua-5.2.3/src/loslib.c')
-rw-r--r--External/lua-5.2.3/src/loslib.c4
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
}