diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2012-09-20 15:29:35 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2012-09-20 15:29:35 +0100 |
commit | 289a253569f48ded3b0f72b5f29ddeda8a85224e (patch) | |
tree | 64146bb3208c60bc8f264bd8f46b101e47cf73f1 /src | |
parent | faafb3f7b749218dbfc2d5a2989fe8c2384a831d (diff) | |
download | dnsmasq-289a253569f48ded3b0f72b5f29ddeda8a85224e.tar.gz |
Fix build with later Lua libraries.
Diffstat (limited to 'src')
-rw-r--r-- | src/helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helper.c b/src/helper.c index 5c07f05..bcb315c 100644 --- a/src/helper.c +++ b/src/helper.c @@ -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); #ifdef HAVE_LUASCRIPT +#define LUA_COMPAT_ALL #include <lua.h> #include <lualib.h> #include <lauxlib.h> +#ifndef lua_open +#define lua_open() luaL_newstate() +#endif + lua_State *lua; static unsigned char *grab_extradata_lua(unsigned char *buf, unsigned char *end, char *field); |