From fa22080d22e1e4e69f7bed6d041083df1b85b4b7 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 30 Nov 2020 17:01:03 -0500 Subject: build: HAVE_LUA -> HAVE_SCRIPTING And also guard all scripting-related stuff with HAVE_SCRIPTING. Signed-off-by: Quentin Young --- lib/frrscript.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/frrscript.c') diff --git a/lib/frrscript.c b/lib/frrscript.c index 60d3c2fc6d..6d03ca119f 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -16,8 +16,10 @@ * 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 + +#ifdef HAVE_SCRIPTING + #include #include @@ -27,6 +29,7 @@ #include "hash.h" #include "log.h" + DEFINE_MTYPE_STATIC(LIB, SCRIPT, "Scripting"); /* Codecs */ @@ -267,3 +270,5 @@ void frrscript_init() /* Register core library types */ frrscript_register_type_codecs(frrscript_codecs_lib); } + +#endif /* HAVE_SCRIPTING */ -- cgit v1.2.3