summaryrefslogtreecommitdiff
path: root/media-sound/streamripper/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-10 00:01:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-10 00:01:14 +0100
commit17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch)
tree7166d1b58a582290a4ad23ff5882cca911b8035c /media-sound/streamripper/files
parenta0ce545d52f231499bf9f3644493113d8af58ec9 (diff)
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'media-sound/streamripper/files')
-rw-r--r--media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch b/media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch
new file mode 100644
index 000000000000..60fb15da9433
--- /dev/null
+++ b/media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch
@@ -0,0 +1,44 @@
+We live in modern world and have ANSI C here. Plus, nothing defines ANSI_PROTOTYPES
+Include unconditionally
+
+Closes: https://bugs.gentoo.org/713314
+Closes: https://bugs.gentoo.org/896432
+--- a/lib/argv.c
++++ b/lib/argv.c
+@@ -52,25 +52,10 @@
+
+ /* Routines imported from standard C runtime libraries. */
+
+-#ifdef ANSI_PROTOTYPES
+-
+ #include <stddef.h>
+ #include <string.h>
+ #include <stdlib.h>
+
+-#else /* !ANSI_PROTOTYPES */
+-
+-#if !defined _WIN32 || defined __GNUC__
+-extern char *memcpy (); /* Copy memory region */
+-extern int strlen (); /* Count length of string */
+-extern char *malloc (); /* Standard memory allocater */
+-extern char *realloc (); /* Standard memory reallocator */
+-extern void free (); /* Free malloc'd memory */
+-extern char *strdup (); /* Duplicate a string */
+-#endif
+-
+-#endif /* ANSI_PROTOTYPES */
+-
+
+ #ifndef NULL
+ #define NULL 0
+--- a/lib/ripstream.c
++++ b/lib/ripstream.c
+@@ -714,7 +714,7 @@
+ char bigbuf[HEADER_SIZE] = "";
+ ID3V2frame id3v2frame;
+ #ifndef WIN32
+- __uint32_t framesize = 0;
++ uint32_t framesize = 0;
+ #else
+ unsigned long int framesize = 0;
+ #endif