summaryrefslogtreecommitdiff
blob: 76344aa56b38d6b266c633f02c09d42265cd7d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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