diff options
Diffstat (limited to 'main/mpd/0001-add-various-missing-headers.patch')
-rw-r--r-- | main/mpd/0001-add-various-missing-headers.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/main/mpd/0001-add-various-missing-headers.patch b/main/mpd/0001-add-various-missing-headers.patch new file mode 100644 index 000000000..e5be9b465 --- /dev/null +++ b/main/mpd/0001-add-various-missing-headers.patch @@ -0,0 +1,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 + |