mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
See https://rt.cpan.org/Ticket/Display.html?id=102730 and https://bugs.debian.org/780351 PR: 208087 Submitted by: Vick Khera <vivek@khera.org>
13 lines
539 B
Perl
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
|