From d848c228856c4966a4504f6312bb0f542aa125ac Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 24 Jan 2011 14:09:49 -0500 Subject: [PATCH] some missing ifdef HAVE_SYS_INOTIFY --- obt/watch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/obt/watch.c b/obt/watch.c index c2f6487d..3ed2d954 100644 --- a/obt/watch.c +++ b/obt/watch.c @@ -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; -- 2.34.1