some missing ifdef HAVE_SYS_INOTIFY
authorDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:09:49 +0000 (14:09 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:54:04 +0000 (18:54 -0400)
obt/watch.c

index c2f6487d7b47b068479e99eb54de3cfae1b233de..3ed2d954faaa1d1e5be5176e3b2350479d9f2b6a 100644 (file)
@@ -87,7 +87,9 @@ void obt_watch_unref(ObtWatch *w)
             g_source_remove(w->ino_watch);
 
         g_hash_table_destroy(w->targets);
+#ifdef HAVE_SYS_INOTIFY_H
         g_hash_table_destroy(w->targets_by_wd);
+#endif
 
         g_slice_free(ObtWatch, w);
     }
@@ -175,7 +177,9 @@ static ObtWatchTarget* target_new(ObtWatch *w, const gchar *path,
 
     t = g_slice_new0(ObtWatchTarget);
     t->w = w;
+#ifdef HAVE_SYS_INOTIFY_H
     t->wd = -1;
+#endif
     t->path = g_strdup(path);
     t->func = func;
     t->data = data;