diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-03 15:18:28 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-03 15:18:28 +0000 |
commit | 4aeb36b1c5a50b496d22794154ecbd5167504941 (patch) | |
tree | 14c6c552ec33aa3f693ab0a7e7e33102ae7768f9 /main/stdtime | |
parent | 5c53b2226dbfe043f87d7d1fb3366e0398983ecb (diff) |
Compatibility fix for glibc 2.4
(Closes issue #14820)
Reported by: phsultan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@186297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stdtime')
-rw-r--r-- | main/stdtime/localtime.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 10bc1eff6..59bccf7a0 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -310,7 +310,11 @@ static void add_notify(struct state *sp, const char *path) sp->wd[1] = -1; } /* or if the symlink itself changes (or the real file is here, if path is not a symlink) */ - sp->wd[0] = inotify_add_watch(inotify_fd, path, IN_ATTRIB | IN_DELETE_SELF | IN_MODIFY | IN_MOVE_SELF | IN_CLOSE_WRITE | IN_DONT_FOLLOW); + sp->wd[0] = inotify_add_watch(inotify_fd, path, IN_ATTRIB | IN_DELETE_SELF | IN_MODIFY | IN_MOVE_SELF | IN_CLOSE_WRITE +#ifdef IN_DONT_FOLLOW /* Only defined in glibc 2.5 and above */ + | IN_DONT_FOLLOW +#endif + ); } } #else |