Skip to content

Commit

Permalink
perlcc: fixed gettimeofday warning Prototype mismatch
Browse files Browse the repository at this point in the history
 Prototype mismatch: sub main::gettimeofday: none vs () at perlcc line 261
  • Loading branch information
Reini Urban committed Nov 7, 2012
1 parent 6e3faa2 commit 2b7f7a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/perlcc.PL
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ sub parse_argv {
warn "--time ignored. No Time::HiRes\n" if $Options->{time};
$Options->{time} = 0;
} else {
sub main::gettimeofday () {};
Time::HiRes->import('gettimeofday','tv_interval','sleep');
}
}
Expand Down

0 comments on commit 2b7f7a3

Please sign in to comment.