File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,18 @@ impl Dlsym {
15
15
use self :: Dlsym :: * ;
16
16
let name = String :: from_utf8_lossy ( name) ;
17
17
Ok ( match target_os {
18
- "linux" | "macos" => match & * name {
19
- "getentropy" => Some ( GetEntropy ) ,
18
+ "linux" => match & * name {
20
19
"__pthread_get_minstack" => None ,
21
- _ => throw_unsup_format ! ( "unsupported dlsym: {}" , name) ,
20
+ _ => throw_unsup_format ! ( "unsupported Linux dlsym: {}" , name) ,
21
+ }
22
+ "macos" => match & * name {
23
+ "getentropy" => Some ( GetEntropy ) ,
24
+ _ => throw_unsup_format ! ( "unsupported macOS dlsym: {}" , name) ,
22
25
}
23
26
"windows" => match & * name {
24
27
"SetThreadStackGuarantee" => None ,
25
28
"AcquireSRWLockExclusive" => None ,
26
- _ => throw_unsup_format ! ( "unsupported dlsym: {}" , name) ,
29
+ _ => throw_unsup_format ! ( "unsupported Windows dlsym: {}" , name) ,
27
30
}
28
31
os => bug ! ( "dlsym not implemented for target_os {}" , os) ,
29
32
} )
You can’t perform that action at this time.
0 commit comments