about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2024-01-10 22:24:12 +0100
committerLeah Neukirchen <leah@vuxu.org>2024-01-10 22:24:12 +0100
commit43682eb4b5aad74cb2d31ae87651843d489eb602 (patch)
tree6cf4dd90dda5d2ebfefcb24042a2c5528ca42041
parentdd85c5ff60d33adc748cd570a9d77edfd0881115 (diff)
downloadmlog-43682eb4b5aad74cb2d31ae87651843d489eb602.tar.gz
mlog-43682eb4b5aad74cb2d31ae87651843d489eb602.tar.xz
mlog-43682eb4b5aad74cb2d31ae87651843d489eb602.zip
move ifd into #ifdef
-rw-r--r--mlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlog.c b/mlog.c
index 566d5d4..1b7fe13 100644
--- a/mlog.c
+++ b/mlog.c
@@ -15,6 +15,7 @@
 #ifdef USE_INOTIFY
 #include <sys/poll.h>
 #include <sys/inotify.h>
+int ifd;
 #endif
 
 int uflag;			/* remove duplicates */
@@ -36,7 +37,6 @@ struct logfile {
 
 struct logfile *logs;
 int logcnt;
-int ifd;
 
 int spacestrcmp(const char *a, const char *b)
 {