summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-11-30 17:01:03 -0500
committerQuentin Young <qlyoung@nvidia.com>2020-12-01 18:37:14 -0500
commitfa22080d22e1e4e69f7bed6d041083df1b85b4b7 (patch)
treebbc642ae55c397d273248c7e01ac2d1c043a60b6 /lib/frrlua.c
parentb4becb063f0ec06c4ecfe2ca832383d49d375441 (diff)
build: HAVE_LUA -> HAVE_SCRIPTING
And also guard all scripting-related stuff with HAVE_SCRIPTING. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index bd1e5b00e5..cd878eb711 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -19,9 +19,11 @@
* with this program; see the file COPYING; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <zebra.h>
-#if defined(HAVE_LUA)
+#ifdef HAVE_SCRIPTING
+
#include "prefix.h"
#include "frrlua.h"
#include "log.h"
@@ -371,4 +373,4 @@ char *frrlua_stackdump(lua_State *L)
return result;
}
-#endif
+#endif /* HAVE_SCRIPTING */