diff options
Diffstat (limited to 'media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch')
-rw-r--r-- | media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch | 44 |
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 |