Permalink
Browse files

perlcc: fixed gettimeofday warning Prototype mismatch

 Prototype mismatch: sub main::gettimeofday: none vs () at perlcc line 261
  • Loading branch information...
1 parent 6e3faa2 commit 2b7f7a3d1de863ca2cf892cf8576ae316c37da70 Reini Urban committed Nov 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 script/perlcc.PL
View
@@ -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');
}
}

0 comments on commit 2b7f7a3

Please sign in to comment.