summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/alure-dumb-2.patch
diff options
context:
space:
mode:
authorHendursaga <hendursaga@aol.com>2023-09-08 12:29:08 -0400
committerLudovic Courtès <ludo@gnu.org>2023-09-18 23:35:30 +0200
commit1fa438fd1caa7429b3a576b6beb6abaf85080df2 (patch)
tree916f3380bb8269dab4f15fab7390a1bb7879625f /gnu/packages/patches/alure-dumb-2.patch
parent429a543d2222b12ffd014e1a8dc072c7ece8ad9e (diff)
gnu: Add alure.
* gnu/packages/audio.scm (alure): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/patches/alure-dumb-2.patch')
-rw-r--r--gnu/packages/patches/alure-dumb-2.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/patches/alure-dumb-2.patch b/gnu/packages/patches/alure-dumb-2.patch
new file mode 100644
index 0000000000..60d18f8570
--- /dev/null
+++ b/gnu/packages/patches/alure-dumb-2.patch
@@ -0,0 +1,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();
+