Fix ios compile error

This commit is contained in:
deal 2022-03-07 19:00:52 +08:00 committed by GitHub
parent 341c110744
commit 30ce5244a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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
}