lua: Don't redefine lua_objlen if already defined.

lua 5.2.2 seems to define this symbol already.
This commit is contained in:
Richard W.M. Jones
2013-11-22 17:15:20 +00:00
parent c90b0eff98
commit 5ee193433a

View File

@@ -49,8 +49,10 @@ let generate_lua_c () =
#include <lauxlib.h>
#if LUA_VERSION_NUM >= 502
#ifndef lua_objlen
#define lua_objlen lua_rawlen
#endif
#endif
#include <guestfs.h>
#include \"guestfs-internal-frontend.h\"