From 77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Sep 2011 21:03:08 +0200 Subject: fd_util: check HAVE_INOTIFY_INIT in header Don't provide the prototype if inotify_init() was not detected. --- src/fd_util.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3