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:
parent
cd09f2a77a
commit
78ca3ba628
@ -1,5 +1,6 @@
|
||||
PORTNAME= opendchub
|
||||
PORTVERSION= 0.8.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-p2p
|
||||
MASTER_SITES= SF/${PORTNAME}/Open%20DC%20Hub/${PORTVERSION}
|
||||
|
||||
|
26
net-p2p/opendchub/files/patch-src_xs__functions.c
Normal file
26
net-p2p/opendchub/files/patch-src_xs__functions.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user