openbsd-ports/www/mhonarc/patches/patch-lib_mhamain_pl
sthen ae959cd48b Fix MHonArc following the perl update, there is another case of "Can't use
'defined(%hash)'" which is now an error ("Compilation failed in require")
rather than just a warning.
2017-03-02 09:47:40 +00:00

13 lines
393 B
Plaintext

$OpenBSD: patch-lib_mhamain_pl,v 1.3 2017/03/02 09:47:40 sthen Exp $
--- lib/mhamain.pl.orig Thu Mar 2 09:38:22 2017
+++ lib/mhamain.pl Thu Mar 2 09:38:33 2017
@@ -1562,7 +1562,7 @@ sub signal_catch {
##
sub defineIndex2MsgId {
no warnings qw(deprecated);
- if (!defined(%Index2MsgId)) {
+ if (!%Index2MsgId) {
foreach (keys %MsgId) {
$Index2MsgId{$MsgId{$_}} = $_;
}