diff options
Diffstat (limited to 'src/InotifyUpdate.cxx')
-rw-r--r-- | src/InotifyUpdate.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx index f02843ad4..5a015508a 100644 --- a/src/InotifyUpdate.cxx +++ b/src/InotifyUpdate.cxx @@ -39,13 +39,12 @@ #include <string.h> #include <dirent.h> -enum { - IN_MASK = IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF - |IN_MOVE|IN_MOVE_SELF +static constexpr unsigned IN_MASK = #ifdef IN_ONLYDIR - |IN_ONLYDIR + IN_ONLYDIR| #endif -}; + IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF + |IN_MOVE|IN_MOVE_SELF; struct WatchDirectory { WatchDirectory *parent; |