Hi,

  gamin 0.1.5 fails to compile without inotify support. Patch attached to fix
  this.

  Sjoerd
-- 
If you put it off long enough, it might go away.
Index: server/gam_server.c
===================================================================
RCS file: /cvs/gnome/gamin/server/gam_server.c,v
retrieving revision 1.36
diff -u -r1.36 gam_server.c
--- server/gam_server.c 9 Aug 2005 16:35:57 -0000       1.36
+++ server/gam_server.c 11 Aug 2005 06:07:38 -0000
@@ -170,9 +170,11 @@
        if (gam_exclude_check (path)) 
        {
                GAM_DEBUG(DEBUG_INFO, "g_a_s: %s excluded\n", path);
+#if ENABLE_INOTIFY
                if (gam_inotify_is_running())
                        return gam_poll_add_subscription (sub);
                else
+#endif
                        return gam_backend_add_subscription(sub);
        } else {
                gam_fs_mon_type type;
@@ -211,9 +213,11 @@
 
        if (gam_exclude_check (path)) 
        {
+#if ENABLE_INOTIFY
                if (gam_inotify_is_running())
                        return gam_poll_remove_subscription (sub);
                else
+#endif
                        return gam_backend_remove_subscription(sub);
        } else {
                gam_fs_mon_type type;
@@ -300,10 +304,14 @@
 
     reqno = gam_subscription_get_reqno(sub);
 
+#ifdef ENABLE_INOTIFY
        if (gam_inotify_is_running())
        {
                gam_queue_event(conn, reqno, event, subpath, len);
        } else {
+#else
+       {
+#endif
                if (gam_send_event(conn, reqno, event, subpath, len) < 0) {
                GAM_DEBUG(DEBUG_INFO, "Failed to send event to PID %d\n",
                          gam_connection_get_pid(conn));

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Gamin-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gamin-list

Reply via email to