diff --git a/lib/nodes/CMakeLists.txt b/lib/nodes/CMakeLists.txt index b735a6e8e..3a6cc92bd 100644 --- a/lib/nodes/CMakeLists.txt +++ b/lib/nodes/CMakeLists.txt @@ -24,6 +24,7 @@ set(NODE_SRC influxdb.c stats.c signal_generator.c + loopback.c ) if(LIBNL3_ROUTE_FOUND) @@ -41,7 +42,6 @@ endif() if(HAS_EVENTFD) list(APPEND NODE_SRC - loopback.c cbuilder.c ) endif() diff --git a/lib/nodes/loopback.c b/lib/nodes/loopback.c index d332ff9c8..bf0370c64 100644 --- a/lib/nodes/loopback.c +++ b/lib/nodes/loopback.c @@ -50,8 +50,10 @@ int loopback_parse(struct node *n, json_t *cfg) if (mode_str) { if (!strcmp(mode_str, "auto")) l->queueflags = QUEUE_SIGNALLED_AUTO; +#ifdef HAVE_EVENTFD else if (!strcmp(mode_str, "eventfd")) l->queueflags = QUEUE_SIGNALLED_EVENTFD; +#endif else if (!strcmp(mode_str, "pthread")) l->queueflags = QUEUE_SIGNALLED_PTHREAD; else if (!strcmp(mode_str, "polling"))