diff --git a/include/villas/config.h.in b/include/villas/config.h.in index 419f0fa61..cf552bb6f 100644 --- a/include/villas/config.h.in +++ b/include/villas/config.h.in @@ -61,6 +61,20 @@ extern "C"{ #define KERNEL_VERSION_MAJ 3 #define KERNEL_VERSION_MIN 6 +#cmakedefine BUILDID "@BUILDID@" +#cmakedefine V @V@ +#cmakedefine PREFIX "@PREFIX@" + +/* Available Features */ +#cmakedefine WITH_WEB +#cmakedefine WITH_API +#cmakedefine WITH_HOOKS +#cmakedefine WITH_IO +#cmakedefine WITH_CONFIG + +/* OS Headers */ +#cmakedefine HAS_EVENTFD + #ifdef __cplusplus } #endif diff --git a/lib/path.c b/lib/path.c index 7763e1aa5..27e66861a 100644 --- a/lib/path.c +++ b/lib/path.c @@ -589,7 +589,7 @@ int path_parse(struct path *p, json_t *cfg, struct list *nodes) } } -#if WITH_HOOKS +#ifdef WITH_HOOKS if (json_hooks) { ret = hook_parse_list(&p->hooks, json_hooks, p, NULL); if (ret)