lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I got an error compiling lua 5.1.4 with IBM XL for AIX (unknown
version), under AIX Version 6, using C++ and LUA_USE_POSIX (not that
it matters).

"[...]/src/loslib.cpp", line 222: Error: "os_exit(lua_State*)" is
expected to return a value.
1 Error(s) detected.

Trivial handcrafted patch:

loslib.c (here loslib.cpp):
=static int os_exit (lua_State *L) {
=  exit(luaL_optint(L, 1, EXIT_SUCCESS));
+  return 0;
=}

-- 
Geoffroy Carrier