aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent46deb7ca8298084b6169ac6349b24797e35623a7 (diff)
downloadmpd-77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f.tar.gz
mpd-77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f.tar.xz
mpd-77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f.zip
fd_util: check HAVE_INOTIFY_INIT in header
Don't provide the prototype if inotify_init() was not detected.
Diffstat (limited to 'src')
-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