freebsd-ports/net-mgmt/wmi-client/files/patch-Samba_source_pidl_pidl
Mathieu Arnold 872812f666 Fix build with Perl 5.21.1+
"defined(@array)" and "defined(%hash)" are now fatal errors
    These have been deprecated since v5.6.1 and have raised deprecation
    warnings since v5.16.

With hat:	perl@
Sponsored by:	Absolight
2015-04-20 17:37:20 +00:00

11 lines
401 B
Text

--- Samba/source/pidl/pidl.orig 2008-07-30 19:44:55 UTC
+++ Samba/source/pidl/pidl
@@ -580,7 +580,7 @@ sub process_file($)
require Parse::Pidl::IDL;
$pidl = Parse::Pidl::IDL::parse_file($idl_file, \@opt_incdirs);
- defined @$pidl || die "Failed to parse $idl_file";
+ @$pidl || die "Failed to parse $idl_file";
require Parse::Pidl::Typelist;
Parse::Pidl::Typelist::LoadIdl($pidl);
}