From 3db79780c8c68c9c0d40bc69eacba51360a89b19 Mon Sep 17 00:00:00 2001 From: Gisle Aas Date: Mon, 15 Aug 2005 14:05:22 -0700 Subject: [PATCH] Time::HiRes::nanosleep support for Solaris [PATCH] Message-ID: p4raw-id: //depot/perl@25295 --- ext/Time/HiRes/hints/solaris.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/Time/HiRes/hints/solaris.pl b/ext/Time/HiRes/hints/solaris.pl index 267cf58..6cc80e7 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']; -- 2.7.4