Define IN_ONLYDIR if not in header (#515346)
authorAlexander Larsson <alexl@redhat.com>
Wed, 13 Feb 2008 13:33:57 +0000 (13:33 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 13 Feb 2008 13:33:57 +0000 (13:33 +0000)
2008-02-13  Alexander Larsson  <alexl@redhat.com>

* inotify/inotify-path.c:
Define IN_ONLYDIR if not in header (#515346)

svn path=/trunk/; revision=6510

gio/ChangeLog
gio/inotify/inotify-path.c

index 8e14640..893e572 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-13  Alexander Larsson  <alexl@redhat.com>
+
+       * inotify/inotify-path.c:
+       Define IN_ONLYDIR if not in header (#515346)
+
 2008-02-12  Alexander Larsson  <alexl@redhat.com>
 
         * tests/live-g-file.c:
index c5cfbb8..3327598 100644 (file)
 
 #define IP_INOTIFY_MASK (IN_MODIFY|IN_ATTRIB|IN_MOVED_FROM|IN_MOVED_TO|IN_DELETE|IN_CREATE|IN_DELETE_SELF|IN_UNMOUNT|IN_MOVE_SELF|IN_CLOSE_WRITE)
 
+/* Older libcs don't have this */
+#ifndef IN_ONLYDIR
+#define IN_ONLYDIR 0  
+#endif
+
 typedef struct ip_watched_dir_s {
   char *path;
   /* TODO: We need to maintain a tree of watched directories