mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
lua: Don't redefine lua_objlen if already defined.
lua 5.2.2 seems to define this symbol already.
This commit is contained in:
@@ -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\"
|
||||
|
||||
Reference in New Issue
Block a user