summaryrefslogtreecommitdiffstats
path: root/main/mpd/0001-add-various-missing-headers.patch
blob: e5be9b4653045d82492a5d52880b64fc2150c5e0 (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
From 642d3548cf986703f9d4534861c59d64dde3497a Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 5 Nov 2013 07:21:48 +0000
Subject: [PATCH] add various missing headers

Fixes building with gcc-4.8

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
 src/ConfigGlobal.cxx      | 1 +
 src/InotifySource.cxx     | 1 +
 src/system/FatalError.cxx | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/ConfigGlobal.cxx b/src/ConfigGlobal.cxx
index 99932f6..49b9c08 100644
--- a/src/ConfigGlobal.cxx
+++ b/src/ConfigGlobal.cxx
@@ -32,6 +32,7 @@
 
 #include <assert.h>
 #include <string.h>
+#include <stdlib.h>
 
 static ConfigData config_data;
 
diff --git a/src/InotifySource.cxx b/src/InotifySource.cxx
index 8dc6b5c..ccf5d3e 100644
--- a/src/InotifySource.cxx
+++ b/src/InotifySource.cxx
@@ -27,6 +27,7 @@
 
 #include <sys/inotify.h>
 #include <unistd.h>
+#include <errno.h>
 
 bool
 InotifySource::OnSocketReady(gcc_unused unsigned flags)
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx
index 85384c4..f02b4b5 100644
--- a/src/system/FatalError.cxx
+++ b/src/system/FatalError.cxx
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef WIN32
 #include <windows.h>
-- 
1.8.4.2