Skip to content

Commit

Permalink
Add support for macOS 11+
Browse files Browse the repository at this point in the history
  • Loading branch information
alin23 committed Jan 8, 2021
1 parent 2d70a36 commit cad4060
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 cad4060

Please sign in to comment.