Update copyright dates
[src/app-framework-binder.git] / src / afb-fdev.c
index 386e1e4..fb6c11a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
 
 #include "fdev.h"
 
-#include "afb-systemd.h"
+#include "jobs.h"
+#include "systemd.h"
 #include "fdev-systemd.h"
 
 struct fdev *afb_fdev_create(int fd)
 {
-       return fdev_systemd_create(afb_systemd_get_event_loop(), fd);
+       jobs_acquire_event_manager();
+       return fdev_systemd_create(systemd_get_event_loop(), fd);
 }