diff options
Diffstat (limited to 'media-sound/dermixd/files/dermixd-1.6.2-compile.patch')
-rw-r--r-- | media-sound/dermixd/files/dermixd-1.6.2-compile.patch | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/media-sound/dermixd/files/dermixd-1.6.2-compile.patch b/media-sound/dermixd/files/dermixd-1.6.2-compile.patch new file mode 100644 index 0000000..76344aa --- /dev/null +++ b/media-sound/dermixd/files/dermixd-1.6.2-compile.patch @@ -0,0 +1,121 @@ +From f26141183f24c9cea162352cf7aaa982e27b4978 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Tue, 30 Jun 2015 22:58:10 +0200 +Subject: [PATCH] Add missing libc includes + +--- + audio_fifo.cxx | 1 + + in_vorbisfile.cxx | 3 +++ + input.cxx | 3 +++ + mixer.cxx | 1 + + mixer_data.cxx | 2 ++ + mixer_tools.cxx | 2 ++ + param.cxx | 1 + + tstring.cxx | 1 + + 8 files changed, 14 insertions(+) + +diff --git a/audio_fifo.cxx b/audio_fifo.cxx +index 8a59757..984b287 100644 +--- a/audio_fifo.cxx ++++ b/audio_fifo.cxx +@@ -40,6 +40,7 @@ + #include "audio_fifo.hxx" + #include "param.hxx" + #include "secsleep.hxx" ++#include <cstring> // memcpy + #include <sys/time.h> + + void* fifo_reader(void* p) +diff --git a/in_vorbisfile.cxx b/in_vorbisfile.cxx +index 376d116..362cda0 100644 +--- a/in_vorbisfile.cxx ++++ b/in_vorbisfile.cxx +@@ -13,6 +13,9 @@ + #define ME "vorbisfile_input" + #define MEF "vorbis_file" + ++#include <cstdio> // vsnprintf ++#include <cstring> // memset ++ + // Hm, actually we talk about vorbus, ogg is generic... but it is the common file name ending. + // Dammit, I should code real file type detection... using libmagic... test access. + const string vorbisfile_input::t = "ogg"; +diff --git a/input.cxx b/input.cxx +index 37355a1..97f7356 100644 +--- a/input.cxx ++++ b/input.cxx +@@ -25,6 +25,9 @@ + #ifdef IN_SNDFILE + #include "in_sndfile.hxx" + #endif ++ ++#include <strings.h> // strcasecmp ++ + input_device* new_input_device(string type, input_data& data) + { + if(strcasecmp(type.c_str(), mpg123_input::t.c_str()) == 0) return new mpg123_input(&data); +diff --git a/mixer.cxx b/mixer.cxx +index 7164fa5..2f739bb 100644 +--- a/mixer.cxx ++++ b/mixer.cxx +@@ -10,6 +10,7 @@ + + #include <fcntl.h> + #include <signal.h> ++#include <cstring> // memmove + + #include "audio_buffer.hxx" + #include "audio_functions.hxx" +diff --git a/mixer_data.cxx b/mixer_data.cxx +index 3da6e00..29588e6 100644 +--- a/mixer_data.cxx ++++ b/mixer_data.cxx +@@ -22,6 +22,8 @@ + #include "mixer_tools.hxx" + #include "communicator_actions.hxx" + ++#include <strings.h> // strcasecmp ++ + //#define DEBUG_SCRIPT + //#define DEBUG_MIXER2 + //#define DEBUG_RESET +diff --git a/mixer_tools.cxx b/mixer_tools.cxx +index c9f5365..73bc3bc 100644 +--- a/mixer_tools.cxx ++++ b/mixer_tools.cxx +@@ -19,6 +19,8 @@ + #include "mixer_data.hxx" + #include "mixer_tools.hxx" + ++#include <strings.h> // strcasecmp ++ + //#define DEBUG_TOOLS + + string stringstatus(signed char status) +diff --git a/param.cxx b/param.cxx +index c3eff1f..d19882c 100644 +--- a/param.cxx ++++ b/param.cxx +@@ -8,6 +8,7 @@ + //not depending on dermixd's common header, this stuff can easily tranfserred to other projects or into an independent library + #include <cstdlib> + #include <cstdio> ++#include <strings.h> // strcasecmp + #include <string> + #include <vector> + using namespace std; +diff --git a/tstring.cxx b/tstring.cxx +index 04e91f2..3a6d3cb 100644 +--- a/tstring.cxx ++++ b/tstring.cxx +@@ -5,6 +5,7 @@ + (c)2008 Thomas Orgis, licensed under GPLv2 + */ + #include "tstring.hxx" ++#include <cstdio> // vsnprintf + using namespace std; + + // Chunks for increasing the sprintf buffer. +-- +2.4.0 + |