File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
CoreFoundation/Base.subproj Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 27
27
#include <CoreFoundation/ForFoundationOnly.h>
28
28
#include <fts.h>
29
29
#include <pthread.h>
30
+ #ifndef __ANDROID__
30
31
#include <execinfo.h>
32
+ #endif
31
33
32
34
_CF_EXPORT_SCOPE_BEGIN
33
35
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ open class Thread : NSObject {
250
250
_cancelled = true
251
251
}
252
252
253
-
253
+ #if !os(Android)
254
254
private class func backtraceAddresses< T> ( _ body: ( UnsafeMutablePointer < UnsafeMutableRawPointer ? > , Int ) -> [ T ] ) -> [ T ] {
255
255
// Same as swift/stdlib/public/runtime/Errors.cpp backtrace
256
256
let maxSupportedStackDepth = 128 ;
@@ -284,6 +284,15 @@ open class Thread : NSObject {
284
284
return symbols
285
285
} )
286
286
}
287
+ #else
288
+ open class var callStackReturnAddresses : [ NSNumber ] {
289
+ NSUnimplemented ( )
290
+ }
291
+
292
+ open class var callStackSymbols : [ String ] {
293
+ NSUnimplemented ( )
294
+ }
295
+ #endif
287
296
}
288
297
289
298
extension NSNotification . Name {
You can’t perform that action at this time.
0 commit comments