summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_fpm_dt.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 14:37:03 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 14:48:12 +0100
commit358336ef366377b4a96c59efe2d6c14e881fa18c (patch)
tree7254e5e328e35277bd9f5242d8961fe360b5dc77 /zebra/zebra_fpm_dt.c
parentzebra: Fix protobuf build on stable/2.0 (diff)
downloadfrr-358336ef366377b4a96c59efe2d6c14e881fa18c.tar.xz
frr-358336ef366377b4a96c59efe2d6c14e881fa18c.zip
zebra: zebra_fpm_dt.c does not always need protobuf
When compiling zebra_fpm_dt.c only pull in protobuf headers if we've turned it on. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_fpm_dt.c')
-rw-r--r--zebra/zebra_fpm_dt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_fpm_dt.c b/zebra/zebra_fpm_dt.c
index 715e250a6..7b4e1b90d 100644
--- a/zebra/zebra_fpm_dt.c
+++ b/zebra/zebra_fpm_dt.c
@@ -50,8 +50,10 @@
#include "qpb/qpb_allocator.h"
#include "qpb/linear_allocator.h"
+#ifdef HAVE_PROTOBUF
#include "qpb/qpb.h"
#include "fpm/fpm.pb-c.h"
+#endif
/*
* Externs.