summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorSven Willner <sven.willner@gmail.com>2017-08-24 20:28:24 +0200
committerSven Willner <sven.willner@gmail.com>2017-08-24 20:28:24 +0200
commit2a981df18167cf8dd0a1310b03061010c8ef71dd (patch)
tree497849fe61e54db9f8fd028c654c7ef1cb50b22b /src/options.c
parent3b53d965289346b73a6af42225175768e5e202fc (diff)
added inotify support
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 56323a8..d06a4e7 100644
--- a/src/options.c
+++ b/src/options.c
@@ -409,6 +409,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"xinerama-index", 1, 0, 239},
{"insecure" , 0, 0, 240},
{"no-recursive" , 0, 0, 241},
+#ifdef HAVE_INOTIFY
+ {"inotify" , 0, 0, 243},
+#endif
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0;
@@ -735,6 +738,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
opt.auto_rotate = 1;
break;
#endif
+#ifdef HAVE_INOTIFY
+ case 243:
+ opt.inotify = 1;
+ break;
+#endif
case 224:
opt.cycle_once = 1;
break;
@@ -852,6 +860,10 @@ static void show_version(void)
"exif "
#endif
+#ifdef HAVE_INOTIFY
+ "inotify "
+#endif
+
#ifdef INCLUDE_HELP
"help "
#endif