graphics/p5-Barcode-ZBar: support new version of graphics/zbar

graphics/zbar was updated in PR 253743

PR:	253931
Submitted by:	vvd@unislabs.com
Approved by:	kuriyama@FreeBSD.org (maintainer, timeout > 1 week)
This commit is contained in:
Fernando Apesteguía 2021-03-08 11:10:09 +00:00
parent a85fc45cea
commit 785cfebc13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567834

View file

@ -0,0 +1,15 @@
--- ZBar.xs.orig
+++ ZBar.xs
@@ -198,9 +198,10 @@
PREINIT:
unsigned major;
unsigned minor;
+ unsigned patch;
CODE:
- zbar_version(&major, &minor);
- RETVAL = newSVpvf("%u.%u", major, minor);
+ zbar_version(&major, &minor, &patch);
+ RETVAL = newSVpvf("%u.%u.%u", major, minor, patch);
OUTPUT:
RETVAL