diff options
-rw-r--r-- | ext/Time/HiRes/hints/solaris.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/Time/HiRes/hints/solaris.pl b/ext/Time/HiRes/hints/solaris.pl index 267cf580b1..6cc80e7bc5 100644 --- 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']; |