Commit 77a56c7c authored by Max Kellermann's avatar Max Kellermann

fd_util: check HAVE_INOTIFY_INIT in header

Don't provide the prototype if inotify_init() was not detected.
parent 46deb7ca
......@@ -122,6 +122,8 @@ recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags);
#endif
#ifdef HAVE_INOTIFY_INIT
/**
* Wrapper for inotify_init(), which sets the CLOEXEC flag (atomically
* if supported by the OS).
......@@ -130,3 +132,5 @@ int
inotify_init_cloexec(void);
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment