]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move declaration to inside ifdef, where it's used
authorAlan T. DeKok <aland@freeradius.org>
Thu, 2 Nov 2017 15:51:52 +0000 (11:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 2 Nov 2017 15:51:52 +0000 (11:51 -0400)
src/modules/rlm_lua/lua.c

index d6d31170bcfb3e54f2bf35db754e640bfc82c93f..a32479df33c22dbcf213a26f874157fc533c55a7 100644 (file)
@@ -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.