Revision history for the Perl extension Time::HiRes.
+1.96 [2006-30-11]
+ - 1.95 broke builds for threaded Perls
+ - use main() prototype consistently in Makefile.PL
+
1.95 [2006-29-11]
- integrate core change #29180: Silence VC++ compiler warnings
from Steve Hay
- regenerate fallback/*.inc for older Perls without
ExtUtils::Constant because of d_hires_stat, resolves
[rt.cpan.org #23694] Time::HiRes fails tests on Solaris and Perl 5.6.1
- - Make Makefile.PL more defensive against false PERL_CORE
1.94 [2006-10-16]
- file timestamps oddities seen: the atime and mtime
stat(...)
PROTOTYPE: ;$
PPCODE:
+ dTHX;
PUSHMARK(SP);
XPUSHs(sv_2mortal(newSVsv(items == 1 ? ST(0) : DEFSV)));
PUTBACK;
ENTER;
PL_laststatval = -1;
- (void)*(PL_ppaddr[OP_STAT])(aTHX);
+ pp_stat();
SPAGAIN;
LEAVE;
if (PL_laststatval == 0) {
- /* We assume that pp_stat() left us with 13 valid stack items. */
+ /* We assume that pp_stat() left us with 13 valid stack items,
+ * and that the timestamps are at offsets 8, 9, and 10. */
UV atime = SvUV(ST( 8));
UV mtime = SvUV(ST( 9));
UV ctime = SvUV(ST(10));
$COREincdir = File::Spec->catdir($Config{'archlibexp'}, 'CORE');
}
- if ($ENV{PERL_CORE}) {
- unless (-f File::Spec->catfile($COREincdir, "EXTERN.h")) {
- die <<__EOD__;
-Your \$ENV{PERL_CORE} is $ENV{PERL_CORE} but there is no EXTERN.h in
-$COREincdir. Cannot continue, aborting.
-__EOD__
- }
- }
-
my $ccflags = $Config{'ccflags'} . ' ' . "-I$COREincdir";
if ($^O eq 'VMS') {
/* int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); */
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct timespec ts1, ts2;
int ret;
ts1.tv_sec = 0;
if (try_compile_and_link(<<EOM)) {
$TIME_HEADERS
#include <sys/stat.h>
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct stat st;
st.st_atimespec.tv_nsec = 0;
}
if (try_compile_and_link(<<EOM)) {
$TIME_HEADERS
#include <sys/stat.h>
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct stat st;
st.st_atimensec = 0;
}
if (try_compile_and_link(<<EOM)) {
$TIME_HEADERS
#include <sys/stat.h>
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct stat st;
st.st_atime_n = 0;
}
if (try_compile_and_link(<<EOM)) {
$TIME_HEADERS
#include <sys/stat.h>
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct stat st;
st.st_atim.tv_nsec = 0;
}
if (try_compile_and_link(<<EOM)) {
$TIME_HEADERS
#include <sys/stat.h>
-int main() {
+int main _((int argc, char** argv, char** env)) {
struct stat st;
st.st_uatime = 0;
}
Makefile:91: *** missing separator
then set the environment variable LC_ALL to "C" and retry
from scratch (re-run perl "Makefile.PL").
-(And consider upgrading your Perl.)
EOM
}
}