diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-30 17:01:03 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | fa22080d22e1e4e69f7bed6d041083df1b85b4b7 (patch) | |
| tree | bbc642ae55c397d273248c7e01ac2d1c043a60b6 /bgpd/bgp_script.c | |
| parent | b4becb063f0ec06c4ecfe2ca832383d49d375441 (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 'bgpd/bgp_script.c')
| -rw-r--r-- | bgpd/bgp_script.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/bgp_script.c b/bgpd/bgp_script.c index c665f2e7c5..0cda1927f8 100644 --- a/bgpd/bgp_script.c +++ b/bgpd/bgp_script.c @@ -19,7 +19,8 @@ */ #include <zebra.h> -#include <lua.h> + +#ifdef HAVE_SCRIPTING #include "bgpd.h" #include "bgp_script.h" @@ -27,6 +28,7 @@ #include "bgp_aspath.h" #include "frratomic.h" #include "frrscript.h" +#include "frrlua.h" static void lua_pushpeer(lua_State *L, const struct peer *peer) { @@ -186,3 +188,5 @@ void bgp_script_init(void) { frrscript_register_type_codecs(frrscript_codecs_bgpd); } + +#endif /* HAVE_SCRIPTING */ |
