From: Dana Jansens Date: Mon, 24 Jan 2011 19:09:49 +0000 (-0500) Subject: some missing ifdef HAVE_SYS_INOTIFY X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d848c228856c4966a4504f6312bb0f542aa125ac;p=dana%2Fopenbox.git some missing ifdef HAVE_SYS_INOTIFY --- 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;