#include <getopt.h>
#include <sys/inotify.h>
+#ifdef HAVE_FANOTIFY_INIT
+#include <sys/fanotify.h>
+#endif
+
#include <systemd/sd-daemon.h>
#include "missing.h"
log_warning("readlink(%s) failed: %s", fn, strerror(-k));
next_iteration:
- if (m->fd)
+ if (m->fd >= 0)
close_nointr_nofail(m->fd);
}
}