From 2a981df18167cf8dd0a1310b03061010c8ef71dd Mon Sep 17 00:00:00 2001 From: Sven Willner Date: Thu, 24 Aug 2017 20:28:24 +0200 Subject: added inotify support --- src/options.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/options.c') 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; @@ -734,6 +737,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) case 242: opt.auto_rotate = 1; break; +#endif +#ifdef HAVE_INOTIFY + case 243: + opt.inotify = 1; + break; #endif case 224: opt.cycle_once = 1; @@ -852,6 +860,10 @@ static void show_version(void) "exif " #endif +#ifdef HAVE_INOTIFY + "inotify " +#endif + #ifdef INCLUDE_HELP "help " #endif -- cgit v1.2.3