nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From 3795c48b607f4fe98062e5a4a19310899398be42 Mon Sep 17 00:00:00 2001
2From: Florian Stecker <oss@florianstecker.net>
3Date: Thu, 12 Jun 2025 23:47:31 -0400
4Subject: [PATCH] Compatibility with libmupdf 1.26
5
6---
7 link.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10diff --git a/link.c b/link.c
11index ff635b2..9134726 100644
12--- a/link.c
13+++ b/link.c
14@@ -2560,8 +2560,8 @@ ML (getfileannot (value ptr_v, value n_v))
15 pdf_obj *fs = pdf_dict_get (state.ctx,
16 pdf_annot_obj (state.ctx, slink->u.annot),
17 PDF_NAME (FS));
18- pdf_embedded_file_params file_params;
19- pdf_get_embedded_file_params (state.ctx, fs, &file_params);
20- ret_v = caml_copy_string (file_params.filename);
21+ pdf_filespec_params params;
22+ pdf_get_filespec_params (state.ctx, fs, ¶ms);
23+ ret_v = caml_copy_string (params.filename);
24
25 unlock (__func__);