glib r6510 - in trunk/gio: . inotify



Author: alexl
Date: Wed Feb 13 13:33:57 2008
New Revision: 6510
URL: http://svn.gnome.org/viewvc/glib?rev=6510&view=rev

Log:
2008-02-13  Alexander Larsson  <alexl redhat com>

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




Modified:
   trunk/gio/ChangeLog
   trunk/gio/inotify/inotify-path.c

Modified: trunk/gio/inotify/inotify-path.c
==============================================================================
--- trunk/gio/inotify/inotify-path.c	(original)
+++ trunk/gio/inotify/inotify-path.c	Wed Feb 13 13:33:57 2008
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]