From: Alan T. DeKok Date: Thu, 2 Nov 2017 15:51:52 +0000 (-0400) Subject: move declaration to inside ifdef, where it's used X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30737a164a1c80b4a4afacf1ecddeda7596cd541;p=thirdparty%2Ffreeradius-server.git move declaration to inside ifdef, where it's used --- diff --git a/src/modules/rlm_lua/lua.c b/src/modules/rlm_lua/lua.c index d6d31170bcf..a32479df33c 100644 --- a/src/modules/rlm_lua/lua.c +++ b/src/modules/rlm_lua/lua.c @@ -810,9 +810,10 @@ static int _lua_state_free(lua_State **marker) */ static lua_State *rlm_lua_get_interp(rlm_lua_t const *inst) { lua_State **marker; - lua_State *L; #ifdef HAVE_PTHREAD_H + lua_State *L; + /* * Were running in single interpreter mode, grab the interpreter lock * and return the instance specific interpreter.