[asterisk-commits] tilghman: trunk r186297 - /trunk/main/stdtime/localtime.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 3 10:18:35 CDT 2009


Author: tilghman
Date: Fri Apr  3 10:18:28 2009
New Revision: 186297

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=186297
Log:
Compatibility fix for glibc 2.4
(Closes issue #14820)
Reported by: phsultan

Modified:
    trunk/main/stdtime/localtime.c

Modified: trunk/main/stdtime/localtime.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/stdtime/localtime.c?view=diff&rev=186297&r1=186296&r2=186297
==============================================================================
--- trunk/main/stdtime/localtime.c (original)
+++ trunk/main/stdtime/localtime.c Fri Apr  3 10:18:28 2009
@@ -310,7 +310,11 @@
 			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




More information about the asterisk-commits mailing list