summaryrefslogtreecommitdiff
path: root/modules/lua/mod_lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua/mod_lua.h')
-rw-r--r--modules/lua/mod_lua.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h
index 5394f7a4..52ff96ad 100644
--- a/modules/lua/mod_lua.h
+++ b/modules/lua/mod_lua.h
@@ -40,6 +40,9 @@
#include "apr_time.h"
#include "apr_hooks.h"
+/* Allow for Lua 5.2 backwards compatibility */
+#define LUA_COMPAT_ALL
+
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
@@ -113,7 +116,7 @@ typedef struct
apr_hash_t *hooks; /* <wombat_hook_info> */
/* the actual directory being configured */
- char *dir;
+ const char *dir;
/* Whether Lua scripts in a sub-dir are run before parents */
ap_lua_inherit_t inherit;
@@ -131,7 +134,7 @@ typedef struct
typedef struct
{
- char *function_name;
+ const char *function_name;
ap_lua_vm_spec *spec;
} mapped_request_details;
@@ -144,7 +147,7 @@ typedef struct
typedef struct
{
lua_State *L;
- char *function;
+ const char *function;
} ap_lua_filter_ctx;
extern module AP_MODULE_DECLARE_DATA lua_module;