From 846352c3d2f7d7fc5a250f0355a5c05b1f786a64 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Tue, 17 Aug 2021 11:25:21 +0200 Subject: [PATCH] add missing WITH_HOOKS condition to compile without hooks --- lib/path.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/path.cpp b/lib/path.cpp index b0efea8f1..250ce6860 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -816,7 +816,9 @@ json_t * path_to_json(struct vpath *p) uuid_unparse(p->uuid, uuid); json_t *json_signals = signal_list_to_json(&p->signals); +#ifdef WITH_HOOKS json_t *json_hooks = hook_list_to_json(&p->hooks); +#endif /* WITH_HOOKS */ json_t *json_sources = json_array(); json_t *json_destinations = json_array(); @@ -844,7 +846,9 @@ json_t * path_to_json(struct vpath *p) "poll", p->poll, "queuelen", p->queuelen, "signals", json_signals, +#ifdef WITH_HOOKS "hooks", json_hooks, +#endif /* WITH_HOOKS */ "in", json_sources, "out", json_destinations );