aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_spool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 0665b477c..d285af54b 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -456,8 +456,11 @@ struct direntry {
};
static AST_LIST_HEAD_STATIC(dirlist, direntry);
+
+#if defined(HAVE_INOTIFY)
/* Only one thread is accessing this list, so no lock is necessary */
static AST_LIST_HEAD_NOLOCK_STATIC(createlist, direntry);
+#endif
static void queue_file(const char *filename, time_t when)
{