unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 60d18f857095b86d445c0f4e6957b84dde0613ac 943 bytes (raw)
name: packages/patches/alure-dumb-2.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Source: https://gitlab.archlinux.org/archlinux/packaging/packages/alure/-/blob/main/dumb-2.patch

diff -Naur a/src/codec_dumb.cpp b/src/codec_dumb.cpp
--- a/src/codec_dumb.cpp	2011-07-29 09:37:48.000000000 +0100
+++ b/src/codec_dumb.cpp	2020-05-10 15:59:48.502632496 +0100
@@ -272,7 +272,11 @@
 
 private:
     // DUMBFILE iostream callbacks
+#if DUMB_VERSION >= 2*10000
+    static int skip(void *user_data, dumb_off_t offset)
+#else
     static int skip(void *user_data, long offset)
+#endif
     {
         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
         stream->clear();
@@ -282,7 +286,11 @@
         return -1;
     }
 
+#if DUMB_VERSION >= 2*10000
+    static dumb_ssize_t read(char *ptr, size_t size, void *user_data)
+#else
     static long read(char *ptr, long size, void *user_data)
+#endif
     {
         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
         stream->clear();


debug log:

solving 60d18f857095b86d445c0f4e6957b84dde0613ac ...
found 60d18f857095b86d445c0f4e6957b84dde0613ac in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).