summaryrefslogtreecommitdiff
path: root/dev-perl/Cairo/files/Cairo-1.109.0-c99.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Cairo/files/Cairo-1.109.0-c99.patch')
-rw-r--r--dev-perl/Cairo/files/Cairo-1.109.0-c99.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-perl/Cairo/files/Cairo-1.109.0-c99.patch b/dev-perl/Cairo/files/Cairo-1.109.0-c99.patch
new file mode 100644
index 000000000000..5bac174069bd
--- /dev/null
+++ b/dev-perl/Cairo/files/Cairo-1.109.0-c99.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/924211
+https://gitlab.gnome.org/GNOME/perl-cairo/-/issues/2
+
+--- a/CairoSurface.xs
++++ b/CairoSurface.xs
+@@ -389,7 +389,7 @@ cairo_status_t
+ cairo_surface_set_mime_data (cairo_surface_t *surface, const char *mime_type, SV *data);
+ PREINIT:
+ const unsigned char *mime_data;
+- unsigned long length;
++ STRLEN length;
+ CODE:
+ SvREFCNT_inc (data);
+ mime_data = (const unsigned char *) SvPV(data, length);