aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-fdev.c
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-07-25 16:48:42 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-07-25 17:29:21 +0200
commit635772bd8cf7ad5c4f4caff441e2809e7b8de16a (patch)
tree6c59f1bcdd9749ba7b6c768937b7fb94b394ce57 /src/afb-fdev.c
parent9cbff28c8a97e7a5dc36f6e6225a9d5e2eab8f06 (diff)
Tune dependency to fdev-epoll
The dependency to fdev-epoll is not real at the moment because afb-daemon still uses systemd event loop mechanisms. At the end use of it will depend on the conditional compilation flag as REMOVE_SYSTEMD_EVENT here. Change-Id: I46e65cddafef05a9418cd4cf4d5cbf596ebeda49 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-fdev.c')
-rw-r--r--src/afb-fdev.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/afb-fdev.c b/src/afb-fdev.c
index 2c96ef52..8e3358d7 100644
--- a/src/afb-fdev.c
+++ b/src/afb-fdev.c
@@ -18,14 +18,6 @@
#include "fdev.h"
#if !defined(REMOVE_SYSTEMD_EVENT)
-# define USE_SYSTEMD 1
-# define USE_EPOLL 0
-#else
-# define USE_SYSTEMD 0
-# define USE_EPOLL 1
-#endif
-
-#if USE_SYSTEMD
#include "afb-systemd.h"
#include "fdev-systemd.h"
@@ -35,9 +27,7 @@ struct fdev *afb_fdev_create(int fd)
return fdev_systemd_create(afb_systemd_get_event_loop(), fd);
}
-#endif
-
-#if USE_EPOLL
+#else
#include "jobs.h"
#include "fdev-epoll.h"