aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/fd_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fd_util.h b/src/fd_util.h
index 647860a97..3d465b200 100644
--- a/src/fd_util.h
+++ b/src/fd_util.h
@@ -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