From: Alexander Larsson Date: Wed, 13 Feb 2008 13:33:57 +0000 (+0000) Subject: Define IN_ONLYDIR if not in header (#515346) X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ab7e80d3669e3b015598c7b771938e921f58bf45;p=dana%2Fcg-glib.git Define IN_ONLYDIR if not in header (#515346) 2008-02-13 Alexander Larsson * inotify/inotify-path.c: Define IN_ONLYDIR if not in header (#515346) svn path=/trunk/; revision=6510 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 8e14640d..893e5722 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-02-13 Alexander Larsson + + * inotify/inotify-path.c: + Define IN_ONLYDIR if not in header (#515346) + 2008-02-12 Alexander Larsson * tests/live-g-file.c: diff --git a/gio/inotify/inotify-path.c b/gio/inotify/inotify-path.c index c5cfbb8a..33275989 100644 --- a/gio/inotify/inotify-path.c +++ b/gio/inotify/inotify-path.c @@ -37,6 +37,11 @@ #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