diff options
Diffstat (limited to 'util/event_notifier-posix.c')
-rw-r--r-- | util/event_notifier-posix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c index b00189a754..e150301c33 100644 --- a/util/event_notifier-posix.c +++ b/util/event_notifier-posix.c @@ -21,11 +21,17 @@ #include <sys/eventfd.h> #endif +#ifdef CONFIG_EVENTFD +/* + * Initialize @e with existing file descriptor @fd. + * @fd must be a genuine eventfd object, emulation with pipe won't do. + */ void event_notifier_init_fd(EventNotifier *e, int fd) { e->rfd = fd; e->wfd = fd; } +#endif int event_notifier_init(EventNotifier *e, int active) { |