File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ extension arm_gprs {
831
831
832
832
// .. Darwin specifics .........................................................
833
833
834
- #if os(macOS)
834
+ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
835
835
private func mach_thread_get_state< T> ( _ thread: thread_t ,
836
836
_ flavor: CInt ,
837
837
_ result: inout T ) -> kern_return_t {
Original file line number Diff line number Diff line change 23
23
#include < TargetConditionals.h>
24
24
#endif
25
25
26
- #if TARGET_OS_OSX
26
+ #if TARGET_OS_OSX || TARGET_OS_IPHONE
27
27
#include < mach/machine.h>
28
28
#include < mach/task.h>
29
29
@@ -76,7 +76,7 @@ struct arm_gprs {
76
76
77
77
// .. Darwin specifics .........................................................
78
78
79
- #if TARGET_OS_OSX
79
+ #if TARGET_OS_OSX || TARGET_OS_IPHONE
80
80
81
81
/* Darwin thread states. We can't import these from the system header because
82
82
it uses all kinds of macros and the Swift importer can't cope with that.
@@ -258,7 +258,7 @@ enum {
258
258
kCRSanitizePathKeepFile = 0x100 << 1 ,
259
259
};
260
260
261
- #endif // TARGET_OS_OSX
261
+ #endif // TARGET_OS_OSX || TARGET_OS_IPHONE
262
262
263
263
#ifdef __cplusplus
264
264
} // extern "C"
You can’t perform that action at this time.
0 commit comments