From deca28a33bcd913abeaf03017c52b1d2e9fd50e7 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Thu, 20 May 2021 19:22:14 -0400 Subject: tests: add grpc unit test Test uses staticd which required some C++ header protections. Additionally, the test also runs in the ubuntu20 docker container as grpc is supported there by the packaging system. Signed-off-by: Christian Hopps --- staticd/static_debug.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'staticd/static_debug.h') diff --git a/staticd/static_debug.h b/staticd/static_debug.h index 3a96339f47..ee9f7b0537 100644 --- a/staticd/static_debug.h +++ b/staticd/static_debug.h @@ -23,11 +23,14 @@ #ifndef _STATIC_DEBUG_H #define _STATIC_DEBUG_H - #include #include "lib/debug.h" +#ifdef __cplusplus +extern "C" { +#endif + /* staticd debugging records */ extern struct debug static_dbg_events; extern struct debug static_dbg_route; @@ -70,5 +73,8 @@ int static_debug_status_write(struct vty *vty); */ void static_debug_set(int vtynode, bool onoff, bool events, bool route); +#ifdef __cplusplus +} +#endif #endif /* _STATIC_DEBUG_H */ -- cgit v1.2.3