lua: Don't redefine lua_objlen if already defined.

lua 5.2.2 seems to define this symbol already.

(cherry picked from commit 5ee193433a)
This commit is contained in:
Richard W.M. Jones
2013-11-22 17:15:20 +00:00
parent 83b054537a
commit dcdc919c5f

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\"