diff options
author | Max Kellermann <max@duempel.org> | 2011-09-19 21:03:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-20 08:38:17 +0200 |
commit | 77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f (patch) | |
tree | bccb4c2c85825e217933ccb297216d62588600b0 /src | |
parent | 46deb7ca8298084b6169ac6349b24797e35623a7 (diff) | |
download | mpd-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.h | 4 |
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 |