aboutsummaryrefslogtreecommitdiffstats
path: root/main/stdtime
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-03 15:19:27 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-03 15:19:27 +0000
commitfd323a771e6c3c71fce5777044bd8b2bdcf1ae73 (patch)
treeae90b3efd41f89b8df152cbb1b9e1a15897a2392 /main/stdtime
parent0df1eaa5aabf16ee86c796ba267bb2833c1de707 (diff)
Merged revisions 186297 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r186297 | tilghman | 2009-04-03 10:18:28 -0500 (Fri, 03 Apr 2009) | 4 lines Compatibility fix for glibc 2.4 (Closes issue #14820) Reported by: phsultan ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@186302 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/stdtime')
-rw-r--r--main/stdtime/localtime.c6
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