diff options
author | Alexey Sokolov <sokolov@google.com> | 2020-10-03 20:35:46 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-10-15 20:26:34 +0000 |
commit | cea071f6cd314416dc6e9b944501ea9f8f7bc70b (patch) | |
tree | 59895f4bc3c162c58a953454df97090ca91a10cb /games-kids/lletters/files/lletters-0.1.95-fno-common.patch | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.4.71 for arm64 (diff) | |
download | gentoo-cea071f6cd314416dc6e9b944501ea9f8f7bc70b.tar.gz gentoo-cea071f6cd314416dc6e9b944501ea9f8f7bc70b.tar.bz2 gentoo-cea071f6cd314416dc6e9b944501ea9f8f7bc70b.zip |
games-kids/lletters: fix build and crash on startup
Closes: https://bugs.gentoo.org/708540
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-kids/lletters/files/lletters-0.1.95-fno-common.patch')
-rw-r--r-- | games-kids/lletters/files/lletters-0.1.95-fno-common.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/games-kids/lletters/files/lletters-0.1.95-fno-common.patch b/games-kids/lletters/files/lletters-0.1.95-fno-common.patch new file mode 100644 index 000000000000..284b276231ef --- /dev/null +++ b/games-kids/lletters/files/lletters-0.1.95-fno-common.patch @@ -0,0 +1,41 @@ +diff -r edda3caf942c libqdwav/wav_lib.h +--- a/libqdwav/wav_lib.h Sat Oct 03 19:10:00 2020 +0000 ++++ b/libqdwav/wav_lib.h Sat Oct 03 19:12:33 2020 +0000 +@@ -29,11 +29,11 @@ + char head[43]; + } wav_sig; + +-buffmem_desc binfo; +-count_info cinfo; ++extern buffmem_desc binfo; ++extern count_info cinfo; + +-int dsp_fd; +-int *buffer; ++extern int dsp_fd; ++extern int *buffer; + + short get_wav_format (wav_sig *info); + int open_wav (char *header, char file_name[]); +@@ -47,4 +47,4 @@ + int init_parm (int argc, char *argv[], wav_sig *file_info); + int open_wav_rec (wav_sig *info); + +-int bsize; ++extern int bsize; +diff -r edda3caf942c libqdwav/wav_read.c +--- a/libqdwav/wav_read.c Sat Oct 03 19:10:00 2020 +0000 ++++ b/libqdwav/wav_read.c Sat Oct 03 19:12:33 2020 +0000 +@@ -6,7 +6,11 @@ + #include <sys/stat.h> + #include "wav_lib.h" + +- ++buffmem_desc binfo; ++count_info cinfo; ++int dsp_fd; ++int *buffer; ++int bsize; + + /* wav header is 44 bytes long */ + int open_wav(char *header, char file_name[]){ |