/*
- * Copyright (C) 2018 "IoT.bzh"
+ * Copyright (C) 2018, 2019 "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);
}