aboutsummaryrefslogtreecommitdiff
path: root/src/fd_util.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-19 21:03:08 +0200
committerMax Kellermann <max@duempel.org>2011-09-20 08:38:17 +0200
commit77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f (patch)
treebccb4c2c85825e217933ccb297216d62588600b0 /src/fd_util.h
parent46deb7ca8298084b6169ac6349b24797e35623a7 (diff)
fd_util: check HAVE_INOTIFY_INIT in header
Don't provide the prototype if inotify_init() was not detected.
Diffstat (limited to 'src/fd_util.h')
-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 647860a9..3d465b20 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