>From 76d6b57e4025ebf5f331378ccf3c8cb5bddb83e0 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sun, 24 Aug 2025 17:26:13 +0100
Subject: [PATCH] Fix invalid XS syntax that breaks the build with Perl 5.42

Older versions of ExtUtils::ParseXS used to silently ignore parameter
declarations that it could not parse. Newer ones (starting around Perl
5.42) issue a syntax error ("Unparseable XSUB parameter") instead.

See https://rt.cpan.org/Public/Bug/Display.html?id=162293 for a similar
issue in another module (Crypt-SMIME), where Dave Mitchell recommends
giving the ignored parameter a name but no type.
---
 bindings/perl/Scan.xs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/perl/Scan.xs b/bindings/perl/Scan.xs
index e778e98..c1376a5 100644
--- a/bindings/perl/Scan.xs
+++ b/bindings/perl/Scan.xs
@@ -270,7 +270,7 @@ CODE:
 }
 
 void
-set_log_level(MediaScan *, int level)
+set_log_level(class, int level)
 CODE:
 {
   ms_set_log_level(level);
-- 
2.49.0

