Define IN_ONLYDIR if not in header (#515346)

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
This commit is contained in:
Alexander Larsson 2008-02-13 13:33:57 +00:00 committed by Alexander Larsson
parent 74905ae3ca
commit ab7e80d366
2 changed files with 10 additions and 0 deletions

View 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:

View File

@ -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