1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

fix "lua_vmprep.c:29:6: warning: no previous prototype for ‘ap_lua_init_mutex’ [-Wmissing-prototypes]"

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2012-08-06 12:05:47 +00:00
parent 93111a7645
commit 2e5559bb81
2 changed files with 8 additions and 5 deletions

View File

@@ -130,6 +130,13 @@ AP_LUA_DECLARE(void) ap_lua_load_apache2_lmodule(lua_State *L);
AP_LUA_DECLARE(lua_State*) ap_lua_get_lua_state(apr_pool_t *lifecycle_pool,
ap_lua_vm_spec *spec, request_rec* r);
#if APR_HAS_THREADS || defined(DOXYGEN)
/*
* Initialize mod_lua mutex.
* @pool pool for mutex
* @s server_rec for logging
*/
void ap_lua_init_mutex(apr_pool_t *pool, server_rec *s);
#endif
#endif

View File

@@ -127,10 +127,6 @@ static void ap_lua_release_state(lua_State* L, ap_lua_vm_spec* spec, request_rec
}
}
#if APR_HAS_THREADS
extern void ap_lua_init_mutex(apr_pool_t *pool, server_rec *s);
#endif
static ap_lua_vm_spec *create_vm_spec(apr_pool_t **lifecycle_pool,
request_rec *r,
const ap_lua_dir_cfg *cfg,