mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-12-04 22:08:27 +00:00
Fix build with later Lua libraries.
This commit is contained in:
1 parent
faafb3f7b7
commit
289a253569
2 files changed
+8
No files matched your search
@@ -22,7 +22,10 @@ version 2.64
|
|||||||
Add SetServersEX method in DBus interface. Thanks to Dan
|
Add SetServersEX method in DBus interface. Thanks to Dan
|
||||||
Williams for the patch.
|
Williams for the patch.
|
||||||
|
|
||||||
|
Fix build with later Lua libraries. Thansk to Cristian
|
||||||
|
Rodriguez for the patch.
|
||||||
|
|
||||||
|
|
||||||
version 2.63
|
version 2.63
|
||||||
Do duplicate dhcp-host address check in --test mode.
|
Do duplicate dhcp-host address check in --test mode.
|
||||||
|
|
||||||
|
|||||||
@@ -34,10 +34,15 @@ static void my_setenv(const char *name, const char *value, int *error);
|
|||||||
static unsigned char *grab_extradata(unsigned char *buf, unsigned char *end, char *env, int *err);
|
static unsigned char *grab_extradata(unsigned char *buf, unsigned char *end, char *env, int *err);
|
||||||
|
|
||||||
#ifdef HAVE_LUASCRIPT
|
#ifdef HAVE_LUASCRIPT
|
||||||
|
#define LUA_COMPAT_ALL
|
||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
|
|
||||||
|
#ifndef lua_open
|
||||||
|
#define lua_open() luaL_newstate()
|
||||||
|
#endif
|
||||||
|
|
||||||
lua_State *lua;
|
lua_State *lua;
|
||||||
|
|
||||||
static unsigned char *grab_extradata_lua(unsigned char *buf, unsigned char *end, char *field);
|
static unsigned char *grab_extradata_lua(unsigned char *buf, unsigned char *end, char *field);
|
||||||
|
|||||||
Reference in new issue
Block a user