projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5581d86
)
Time::HiRes::nanosleep support for Solaris [PATCH]
author
Gisle Aas
<gisle@aas.no>
Mon, 15 Aug 2005 21:05:22 +0000
(14:05 -0700)
committer
H.Merijn Brand
<h.m.brand@xs4all.nl>
Tue, 16 Aug 2005 07:36:58 +0000
(07:36 +0000)
Message-ID: <lrk6imy1a5.fsf@caliper.activestate.com>
p4raw-id: //depot/perl@25295
ext/Time/HiRes/hints/solaris.pl
patch
|
blob
|
history
diff --git
a/ext/Time/HiRes/hints/solaris.pl
b/ext/Time/HiRes/hints/solaris.pl
index
267cf58
..
6cc80e7
100644
(file)
--- a/
ext/Time/HiRes/hints/solaris.pl
+++ b/
ext/Time/HiRes/hints/solaris.pl
@@
-1,6
+1,7
@@
-use POSIX qw(uname);
# 2.6 has nanosleep in -lposix4, after that it's in -lrt
-if (substr((uname())[2], 2) <= 6) {
+my $r = `/usr/bin/uname -r`;
+chomp($r);
+if (substr($r, 2) <= 6) {
$self->{LIBS} = ['-lposix4'];
} else {
$self->{LIBS} = ['-lrt'];