Skip to content

Commit

Permalink
Merge pull request #3 from alin23/master
Browse files Browse the repository at this point in the history
Add support for macOS 11+
  • Loading branch information
proger authored Jan 8, 2021
2 parents 2d70a36 + cad4060 commit 487d243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static inline void parse_cli_settings(int argc, const char* argv[])
}

if (args_info.ignore_self_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 6)) {
if ((osMajorVersion == 11) || ((osMajorVersion == 10) & (osMinorVersion >= 6))) {
config.flags |= kFSEventStreamCreateFlagIgnoreSelf;
} else {
fprintf(stderr, "MacOSX 10.6 or later is required for --ignore-self\n");
Expand All @@ -94,7 +94,7 @@ static inline void parse_cli_settings(int argc, const char* argv[])
}

if (args_info.file_events_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 7)) {
if ((osMajorVersion == 11) || ((osMajorVersion == 10) & (osMinorVersion >= 7))) {
config.flags |= kFSEventStreamCreateFlagFileEvents;
} else {
fprintf(stderr, "MacOSX 10.7 or later required for --file-events\n");
Expand All @@ -103,7 +103,7 @@ static inline void parse_cli_settings(int argc, const char* argv[])
}

if (args_info.mark_self_flag) {
if ((osMajorVersion == 10) & (osMinorVersion >= 9)) {
if ((osMajorVersion == 11) || ((osMajorVersion == 10) & (osMinorVersion >= 9))) {
config.flags |= kFSEventStreamCreateFlagMarkSelf;
} else {
fprintf(stderr, "MacOSX 10.9 or later required for --mark-self\n");
Expand Down

0 comments on commit 487d243

Please sign in to comment.