diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-10 14:06:33 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-15 09:37:51 -0500 | 
| commit | fd193241e9d404cb9b730ea82ebbd93977b500f0 (patch) | |
| tree | 7dced8697412c939eabf489e1bbae7ab7cc6b4f2 /zebra/zebra_mlag.c | |
| parent | 14d9bbbe5c6526f729f0bdbd7e0513d69feb1a87 (diff) | |
zebra: Do not build mlag protobuf support if version 3 is not avail
Older versions of protobuf-c do not support version 3 of the
protocol.  Add a check into the system to see if we have
version 3 available and if so, compile it in.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mlag.c')
| -rw-r--r-- | zebra/zebra_mlag.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_mlag.c b/zebra/zebra_mlag.c index 021a52c3a5..f6bd5f4586 100644 --- a/zebra/zebra_mlag.c +++ b/zebra/zebra_mlag.c @@ -27,6 +27,7 @@  #include "mlag.h"  #include "zebra/zebra_mlag.h" +#include "zebra/zebra_mlag_vty.h"  #include "zebra/zebra_router.h"  #include "zebra/zebra_memory.h"  #include "zebra/zapi_msg.h" @@ -653,7 +654,7 @@ void zebra_mlag_terminate(void)   *  ProtoBuf Encoding APIs   */ -#ifdef HAVE_PROTOBUF +#ifdef HAVE_PROTOBUF_VERSION_3  DEFINE_MTYPE_STATIC(ZEBRA, MLAG_PBUF, "ZEBRA MLAG PROTOBUF")  | 
