Permalink
Browse files

JSON don't load JSON until the build step.

  • Loading branch information...
1 parent 9f6a62f commit 0ffb90104e68c0dedf6deed4fabb26cd7b2fe6be @schwern schwern committed Feb 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 perl/Time-y2038/inc/Local/Module/Build.pm
@@ -4,7 +4,6 @@ use strict;
use base qw(Module::Build);
use ExtUtils::CBuilder;
-use JSON;
sub is_osx_106 {
return 0 unless $^O eq 'darwin';
@@ -126,9 +125,10 @@ sub note_time_limits {
=> "y2038/time64_limits.h");
warn " and running it...\n";
+ require JSON;
my $json = `./$exe`;
$json =~ s{^\#.*\n}{}gm;
- my $limits = from_json($json);
+ my $limits = JSON::from_json($json);
warn " Done.\n";

0 comments on commit 0ffb901

Please sign in to comment.