Skip to content

Commit

Permalink
Make the time.h capability check quiessent.
Browse files Browse the repository at this point in the history
Also let the user know there may be C errors.
  • Loading branch information
schwern committed Feb 13, 2010
1 parent 1a781f8 commit 7608cbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perl/Time-y2038/inc/Local/Module/Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sub probe_system_time {
sub note_time_capabilities {
my $self = shift;

return if $self->up_to_date(["Build", "y2038/time64_config.h.in"], ["y2038/time64_config.h"]);
my %tests = (
HAS_TIMEGM => <<'END',
struct tm *date;
Expand Down Expand Up @@ -55,6 +56,8 @@ END
END
);

warn "Probing time.h capabilities.\n";
warn "You may see some C errors, that's ok.\n";
my $cb = ExtUtils::CBuilder->new( quiet => 1 );
for my $test (keys %tests) {
my $code = $tests{$test};
Expand Down

0 comments on commit 7608cbe

Please sign in to comment.