]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod-client.c: Add dummy debuginfod_default_progressfn
authorAaron Merey <amerey@redhat.com>
Thu, 19 Mar 2026 14:12:18 +0000 (10:12 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 19 Mar 2026 14:14:51 +0000 (10:14 -0400)
debuginfod_default_progressfn was added without a corresponding dummy
variant, causing an error when building with --disable-debuginfod and
--enable-libdebuginfod=dummy.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-client.c

index 68fa95111063ce9ef9995ec1bb112a1179743183..659d6f91eb1d0dbfcf6025b1b596c6fcbe7fd42a 100644 (file)
@@ -82,6 +82,8 @@ const char* debuginfod_get_url (debuginfod_client *c) { return NULL; }
 int debuginfod_add_http_header (debuginfod_client *c,
                                const char *h) { return -ENOSYS; }
 const char* debuginfod_get_headers (debuginfod_client *c) { return NULL; }
+int debuginfod_default_progressfn (debuginfod_client *c, long a, long b)
+                                   { return 0; }
 
 void debuginfod_end (debuginfod_client *c) { }