diff options
author | wiz <wiz@pkgsrc.org> | 2012-07-08 21:23:08 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-07-08 21:23:08 +0000 |
commit | 8c3db5104f0292a60424207193792b029988ea34 (patch) | |
tree | a8e030b704e47bd1d8bc70d8e5f190b8772ed9ae /time/p5-Time-HiRes/patches | |
parent | 5bb5798a92ce15898baad65de67eb35e3e84973d (diff) | |
download | pkgsrc-8c3db5104f0292a60424207193792b029988ea34.tar.gz |
Fix off-by-one which broke Time::HiRes::usleep(1000000).
From Michai Ramakers in PR 46673. Bump PKGREVISION.
Diffstat (limited to 'time/p5-Time-HiRes/patches')
-rw-r--r-- | time/p5-Time-HiRes/patches/patch-HiRes.xs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/time/p5-Time-HiRes/patches/patch-HiRes.xs b/time/p5-Time-HiRes/patches/patch-HiRes.xs new file mode 100644 index 00000000000..39f03454bf2 --- /dev/null +++ b/time/p5-Time-HiRes/patches/patch-HiRes.xs @@ -0,0 +1,15 @@ +$NetBSD: patch-HiRes.xs,v 1.1 2012/07/08 21:23:08 wiz Exp $ + +Fix off-by-one. From Michai Ramakers in PR 46673. + +--- HiRes.xs.orig 2011-06-08 18:36:38.000000000 +0000 ++++ HiRes.xs +@@ -792,7 +792,7 @@ usleep(useconds) + CODE: + gettimeofday(&Ta, NULL); + if (items > 0) { +- if (useconds > 1E6) { ++ if (useconds >= 1E6) { + IV seconds = (IV) (useconds / 1E6); + /* If usleep() has been implemented using setitimer() + * then this contortion is unnecessary-- but usleep() |