File mercurial-sle10-inotify-fixes.diff of Package mercurial

---
 hgext/inotify/linux/_inotify.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

--- a/hgext/inotify/linux/_inotify.c
+++ b/hgext/inotify/linux/_inotify.c
@@ -15,6 +15,16 @@
 #include <sys/ioctl.h>
 #include <unistd.h>
 
+#ifndef IN_ONLYDIR
+#define IN_ONLYDIR		0x01000000
+#endif
+#ifndef IN_DONT_FOLLOW
+#define IN_DONT_FOLLOW		0x02000000
+#endif
+#ifndef IN_MASK_ADD
+#define IN_MASK_ADD		0x20000000
+#endif
+
 static PyObject *init(PyObject *self, PyObject *args)
 {
     PyObject *ret = NULL;
openSUSE Build Service is sponsored by