1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

loopback: now also supported on macOS

This commit is contained in:
Steffen Vogel 2018-10-21 19:08:19 +01:00
parent 1afe25545a
commit c55b1a2db6
2 changed files with 3 additions and 1 deletions

View file

@ -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()

View file

@ -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"))