projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4f346e
)
some missing ifdef HAVE_SYS_INOTIFY
author
Dana Jansens
<danakj@orodu.net>
Mon, 24 Jan 2011 19:09:49 +0000
(14:09 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 16 Oct 2011 22:54:04 +0000
(18:54 -0400)
obt/watch.c
patch
|
blob
|
history
diff --git
a/obt/watch.c
b/obt/watch.c
index c2f6487d7b47b068479e99eb54de3cfae1b233de..3ed2d954faaa1d1e5be5176e3b2350479d9f2b6a 100644
(file)
--- 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;