aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/osx-runtime/files/fsevents-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/osx-runtime/files/fsevents-clang.patch')
-rw-r--r--recipes-devtools/osx-runtime/files/fsevents-clang.patch135
1 files changed, 135 insertions, 0 deletions
diff --git a/recipes-devtools/osx-runtime/files/fsevents-clang.patch b/recipes-devtools/osx-runtime/files/fsevents-clang.patch
new file mode 100644
index 0000000..1ef21ba
--- /dev/null
+++ b/recipes-devtools/osx-runtime/files/fsevents-clang.patch
@@ -0,0 +1,135 @@
+Index: OSX-sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
+===================================================================
+--- OSX-sdk.orig/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
++++ OSX-sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
+@@ -259,7 +259,11 @@ enum {
+ * historical events, i.e., those delivered before the HistoryDone
+ * sentinel event.
+ */
++#if defined(__clang__)
+ kFSEventStreamCreateFlagIgnoreSelf __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_6_0) = 0x00000008,
++#else
++ kFSEventStreamCreateFlagIgnoreSelf = 0x00000008,
++#endif
+
+ /*
+ * Request file-level notifications. Your stream will receive events
+@@ -267,7 +271,11 @@ enum {
+ * only receiving directory level notifications. Use this flag with
+ * care as it will generate significantly more events than without it.
+ */
++#if defined(__clang__)
+ kFSEventStreamCreateFlagFileEvents __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_6_0) = 0x00000010,
++#else
++ kFSEventStreamCreateFlagFileEvents = 0x00000010,
++#endif
+
+ /*
+ * Tag events that were triggered by the current process with the "OwnEvent" flag.
+@@ -276,7 +284,11 @@ enum {
+ * triggered by your process. Note: this has no effect on historical events, i.e.,
+ * those delivered before the HistoryDone sentinel event.
+ */
++#if defined(__clang__)
+ kFSEventStreamCreateFlagMarkSelf __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0) = 0x00000020
++#else
++ kFSEventStreamCreateFlagMarkSelf = 0x00000020
++#endif
+ };
+
+
+@@ -411,6 +423,7 @@ enum {
+ * A file system object was created at the specific path supplied in this event.
+ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+ */
++#if defined(__clang__)
+ kFSEventStreamEventFlagItemCreated __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_6_0) = 0x00000100,
+
+ /*
+@@ -489,7 +502,86 @@ enum {
+ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+ */
+ kFSEventStreamEventFlagItemIsLastHardlink __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_9_0) = 0x00200000,
++#else
++ kFSEventStreamEventFlagItemCreated = 0x00000100,
+
++ /*
++ * A file system object was removed at the specific path supplied in this event.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemRemoved = 0x00000200,
++
++ /*
++ * A file system object at the specific path supplied in this event had its metadata modified.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemInodeMetaMod = 0x00000400,
++
++ /*
++ * A file system object was renamed at the specific path supplied in this event.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemRenamed = 0x00000800,
++
++ /*
++ * A file system object at the specific path supplied in this event had its data modified.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemModified = 0x00001000,
++
++ /*
++ * A file system object at the specific path supplied in this event had its FinderInfo data modified.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemFinderInfoMod = 0x00002000,
++
++ /*
++ * A file system object at the specific path supplied in this event had its ownership changed.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemChangeOwner = 0x00004000,
++
++ /*
++ * A file system object at the specific path supplied in this event had its extended attributes modified.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemXattrMod = 0x00008000,
++
++ /*
++ * The file system object at the specific path supplied in this event is a regular file.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemIsFile = 0x00010000,
++
++ /*
++ * The file system object at the specific path supplied in this event is a directory.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemIsDir = 0x00020000,
++
++ /*
++ * The file system object at the specific path supplied in this event is a symbolic link.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemIsSymlink = 0x00040000,
++
++ /*
++ * Indicates the event was triggered by the current process.
++ * (This flag is only ever set if you specified the MarkSelf flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagOwnEvent = 0x00080000,
++
++ /*
++ * Indicates the object at the specified path supplied in this event is a hard link.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemIsHardlink = 0x00100000,
++
++ /* Indicates the object at the specific path supplied in this event was the last hard link.
++ * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
++ */
++ kFSEventStreamEventFlagItemIsLastHardlink = 0x00200000,
++#endif
+ };
+
+