… | |
… | |
64 | # netbsd is totally broken (pthreads are incomaptible with ucontext or |
64 | # netbsd is totally broken (pthreads are incomaptible with ucontext or |
65 | # other stack switching mechanisms) therefore, default to pthread - |
65 | # other stack switching mechanisms) therefore, default to pthread - |
66 | # hey, it might actually work, with some hacks |
66 | # hey, it might actually work, with some hacks |
67 | $iface = "p"; |
67 | $iface = "p"; |
68 | |
68 | |
69 | } elsif ($^O =~ /openbsd/) { |
69 | } elsif ($^O =~ /(openbsd|mirbsd)/) { |
|
|
70 | # openbsd: |
70 | # asm seems to work, setjmp might, ucontext is missing, threads lets not talk about |
71 | # asm seems to work, setjmp might, ucontext is missing, threads lets not talk about |
71 | $iface = $iface_asm || "s"; |
72 | # try setjmp/longjmp on 4.4, but pthread on earlier |
72 | |
73 | # mirbsd: |
73 | } elsif ($^O =~ /mirbsd/) { |
|
|
74 | # seems to be bug-to-bug compatible openbsd fork, |
74 | # seems to be bug-to-bug compatible openbsd fork, |
75 | # with the name change being the biggets difference. |
75 | # with the name change being the biggest difference. |
76 | $iface = $iface_asm || "s"; |
76 | $iface = $iface_asm || ($Config{osvers} >= 4.4 ? "s" : "p"); |
77 | |
77 | |
78 | } elsif ($^O =~ /solaris/) { |
78 | } elsif ($^O =~ /solaris/) { |
79 | # setjmp, ucontext seem to work, as well as asm |
79 | # setjmp, ucontext seem to work, as well as asm |
80 | $iface = $iface_asm || "s"; |
80 | $iface = $iface_asm || "s"; |
81 | |
81 | |