[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Compiler error on IBM XL for AIX
- From: Geoffroy Carrier <geoffroy.carrier@...>
- Date: Mon, 3 Aug 2009 18:17:23 +0200
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