freebsd-ports/japanese/p5-Text-MeCab/files/patch-inc_Module_Install_XSUtil.pm
Mathieu Arnold 0299778778 Fix build with Perl 5.18+
qw(...) can no longer be used as parentheses

Also, rename a patch to stick to our naming scheme.

Sponsored by:	Absolight
2015-04-24 17:43:33 +00:00

11 lines
458 B
Perl

--- inc/Module/Install/XSUtil.pm.orig 2015-04-24 17:35:21 UTC
+++ inc/Module/Install/XSUtil.pm
@@ -242,7 +242,7 @@ sub cc_assert_lib {
if ( ! $self->{xsu_loaded_checklib} ) {
my $loaded_lib = 0;
- foreach my $checklib qw(inc::Devel::CheckLib Devel::CheckLib) {
+ foreach my $checklib ( qw(inc::Devel::CheckLib Devel::CheckLib) ) {
eval "use $checklib 0.4";
if (!$@) {
$loaded_lib = 1;