Subject: | nanosleep() not detected on Solaris |
Solaris8 provides nanosleep():
SYNOPSIS
cc [ flag... ] file... -lrt [ library... ]
#include <time.h>
int nanosleep(const struct timespec *rqtp, struct timespec
*rmtp);
Copying hints/dec_osf.pl to hints/solaris.pl (ie. using -lrt) enabled detection of nanosleep():
Using hints hints/solaris.pl...
Extra libraries: -lrt...
Looking for gettimeofday()... found.
Looking for setitimer()... found.
Looking for getitimer()... found.
You have interval timers (both setitimer and setitimer).
Looking for ualarm()... found.
Looking for usleep()... found.
Looking for nanosleep()... found.
You can mix subsecond sleeps with signals.
...
===> Testing for p5-Time-HiRes-1.52
PERL_DL_NONLAZY=1 /opt/pkg/bin/perl -Iblib/arch -Iblib/lib -I/opt/pkg/lib/perl5/5.6.1/i386-solaris -I/opt/pkg/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/HiRes.............ok
All tests successful.
Files=1, Tests=25, 10 wallclock secs ( 2.28 cusr + 0.09 csys = 2.37 CPU)