1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

net-p2p/opendchub: Fix build with more recent Perl versions.

PR:		ports/264255
This commit is contained in:
Xin LI 2023-08-12 22:00:40 -07:00
parent cd09f2a77a
commit 78ca3ba628
2 changed files with 27 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= opendchub
PORTVERSION= 0.8.3
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= SF/${PORTNAME}/Open%20DC%20Hub/${PORTVERSION}

View File

@ -0,0 +1,26 @@
--- src/xs_functions.c.orig 2014-08-14 15:04:19 UTC
+++ src/xs_functions.c
@@ -277,7 +277,10 @@ XS(xs_check_if_banned)
if(ret != 1)
ret = check_if_banned(user, NICKBAN);
- (ret == 1) ? XSRETURN_IV(1) : XSRETURN_IV(0);
+ if (ret == 1)
+ XSRETURN_IV(1);
+ else
+ XSRETURN_IV(0);
}
XS(xs_check_if_allowed)
@@ -297,7 +300,10 @@ XS(xs_check_if_allowed)
ret = check_if_allowed(user);
- (ret == 1) ? XSRETURN_IV(1) : XSRETURN_IV(0);
+ if (ret == 1)
+ XSRETURN_IV(1);
+ else
+ XSRETURN_IV(0);
}
XS(xs_data_to_user)