compatibility

This commit is contained in:
Michael Davidsaver
2013-12-10 20:45:53 -05:00
parent bfbe6c4910
commit c2e2949ce4
2 changed files with 9 additions and 1 deletions

View File

@@ -258,9 +258,11 @@ PyMODINIT_FUNC init_inotifyy(void)
PyModule_AddIntMacro(mod, IN_ALL_EVENTS);
PyModule_AddIntMacro(mod, IN_EXCL_UNLINK);
PyModule_AddIntMacro(mod, IN_ONESHOT);
/* added in glibc 2.5 */
#ifdef IN_EXCL_UNLINK
PyModule_AddIntMacro(mod, IN_EXCL_UNLINK);
#endif
#ifdef IN_DONT_FOLLOW
PyModule_AddIntMacro(mod, IN_DONT_FOLLOW);
#endif