ports/devel/p5-forks/files/patch-lib_forks.pm
2016-03-17 14:32:13 +00:00

13 lines
539 B
Perl

--- lib/forks.pm.orig 2014-06-27 02:47:00 UTC
+++ lib/forks.pm
@@ -1567,8 +1567,8 @@ sub _server {
# Localize Storable variables to allow CODE refs, if using Storable >= 2.05
- local $Storable::Deparse = 1 if $Storable::VERSION >= 2.05;
- local $Storable::Eval = 1 if $Storable::VERSION >= 2.05;
+ local $Storable::Deparse = 1 if eval { Storable->VERSION('2.05') };
+ local $Storable::Eval = 1 if eval { Storable->VERSION('2.05') };
# Initialize the number of polls
# While we're running in the main dispatch loop