Skip to content

Commit

Permalink
add event flags for hard links
Browse files Browse the repository at this point in the history
  • Loading branch information
ttilley committed Jun 1, 2017
1 parent 0460cc9 commit 3dc8ada
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/fsevent_watch/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ FSEventStreamEventFlags kFSEventStreamEventFlagItemIsSymlink = 0x00040000
FSEventStreamCreateFlags kFSEventStreamCreateFlagMarkSelf = 0x00000020;
FSEventStreamEventFlags kFSEventStreamEventFlagOwnEvent = 0x00080000;
#endif

#if MAC_OS_X_VERSION_MAX_ALLOWED < 10100
FSEventStreamEventFlags kFSEventStreamEventFlagItemIsHardlink = 0x00100000;
FSEventStreamEventFlags kFSEventStreamEventFlagItemIsLastHardlink = 0x00200000;
#endif
5 changes: 5 additions & 0 deletions ext/fsevent_watch/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ extern FSEventStreamCreateFlags kFSEventStreamCreateFlagMarkSelf;
extern FSEventStreamEventFlags kFSEventStreamEventFlagOwnEvent;
#endif

#if MAC_OS_X_VERSION_MAX_ALLOWED < 10100
// flags related to hard links introduced in 10.10
extern FSEventStreamEventFlags kFSEventStreamEventFlagItemIsHardlink,
kFSEventStreamEventFlagItemIsLastHardlink;
#endif

#endif // fsevent_watch_compat_h

0 comments on commit 3dc8ada

Please sign in to comment.