summaryrefslogtreecommitdiffstats
path: root/lib/frrscript.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-11-30 23:01:03 +0100
committerQuentin Young <qlyoung@nvidia.com>2020-12-02 00:37:14 +0100
commitfa22080d22e1e4e69f7bed6d041083df1b85b4b7 (patch)
treebbc642ae55c397d273248c7e01ac2d1c043a60b6 /lib/frrscript.h
parentbgpd: update routemap scripting example (diff)
downloadfrr-fa22080d22e1e4e69f7bed6d041083df1b85b4b7.tar.xz
frr-fa22080d22e1e4e69f7bed6d041083df1b85b4b7.zip
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/frrscript.h')
-rw-r--r--lib/frrscript.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/frrscript.h b/lib/frrscript.h
index cbc0ca6c5..4206420f4 100644
--- a/lib/frrscript.h
+++ b/lib/frrscript.h
@@ -19,6 +19,10 @@
#ifndef __FRRSCRIPT_H__
#define __FRRSCRIPT_H__
+#include <zebra.h>
+
+#ifdef HAVE_SCRIPTING
+
#include <lua.h>
#include "frrlua.h"
@@ -128,4 +132,6 @@ void *frrscript_get_result(struct frrscript *fs,
}
#endif /* __cplusplus */
+#endif /* HAVE_SCRIPTING */
+
#endif /* __FRRSCRIPT_H__ */