diff --git a/thirdparty/lua/plainlua/loslib.c b/thirdparty/lua/plainlua/loslib.c index 3e20d622ba..76f294875f 100644 --- a/thirdparty/lua/plainlua/loslib.c +++ b/thirdparty/lua/plainlua/loslib.c @@ -138,8 +138,8 @@ /* }================================================================== */ - static int os_execute (lua_State *L) { +#if !defined(__APPLE__) const char *cmd = luaL_optstring(L, 1, NULL); int stat; errno = 0; @@ -150,6 +150,9 @@ static int os_execute (lua_State *L) { lua_pushboolean(L, stat); /* true if there is a shell */ return 1; } +#else + return 0; +#endif }