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:
parent
1afe25545a
commit
c55b1a2db6
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue