diff options
author | David Robillard <d@drobilla.net> | 2008-05-11 21:42:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-11 21:42:10 +0000 |
commit | 4505d3aa99dde620ae2f63157920dae9658765ec (patch) | |
tree | 00d72a2b9b62fe0b4bdd2c8e8c17834af2a36ca0 /libs/pbd | |
parent | f844b2c2ab2fb54d3edc1e32366644071d68e688 (diff) |
Fix compilation with GCC 4.3 (at least with SYSLIBS=1).
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3334 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/base_ui.cc | 7 | ||||
-rw-r--r-- | libs/pbd/mountpoint.cc | 1 | ||||
-rw-r--r-- | libs/pbd/pathscanner.cc | 1 | ||||
-rw-r--r-- | libs/pbd/pbd/ringbuffer.h | 1 | ||||
-rw-r--r-- | libs/pbd/pool.cc | 1 |
5 files changed, 8 insertions, 3 deletions
diff --git a/libs/pbd/base_ui.cc b/libs/pbd/base_ui.cc index 8dd056b783..ab7495cb7b 100644 --- a/libs/pbd/base_ui.cc +++ b/libs/pbd/base_ui.cc @@ -21,6 +21,7 @@ #include <unistd.h> #include <fcntl.h> #include <errno.h> +#include <string.h> #include <pbd/base_ui.h> #include <pbd/error.h> @@ -84,20 +85,20 @@ BaseUI::setup_signal_pipe () */ if (pipe (signal_pipe)) { - error << string_compose (_("%1-UI: cannot create error signal pipe (%2)"), _name, std::strerror (errno)) + error << string_compose (_("%1-UI: cannot create error signal pipe (%2)"), _name, ::strerror (errno)) << endmsg; return -1; } if (fcntl (signal_pipe[0], F_SETFL, O_NONBLOCK)) { - error << string_compose (_("%1-UI: cannot set O_NONBLOCK on signal read pipe (%2)"), _name, std::strerror (errno)) + error << string_compose (_("%1-UI: cannot set O_NONBLOCK on signal read pipe (%2)"), _name, ::strerror (errno)) << endmsg; return -1; } if (fcntl (signal_pipe[1], F_SETFL, O_NONBLOCK)) { - error << string_compose (_("%1-UI: cannot set O_NONBLOCK on signal write pipe (%2)"), _name, std::strerror (errno)) + error << string_compose (_("%1-UI: cannot set O_NONBLOCK on signal write pipe (%2)"), _name, ::strerror (errno)) << endmsg; return -1; } diff --git a/libs/pbd/mountpoint.cc b/libs/pbd/mountpoint.cc index 054aff07de..6cefd7bf39 100644 --- a/libs/pbd/mountpoint.cc +++ b/libs/pbd/mountpoint.cc @@ -20,6 +20,7 @@ #include <cstdio> #include <string> +#include <cstring> #include <limits.h> #include <pbd/mountpoint.h> diff --git a/libs/pbd/pathscanner.cc b/libs/pbd/pathscanner.cc index 2af227a3a0..1a9cb985c1 100644 --- a/libs/pbd/pathscanner.cc +++ b/libs/pbd/pathscanner.cc @@ -20,6 +20,7 @@ #include <cstdlib> #include <cstdio> +#include <cstring> #include <vector> #include <dirent.h> diff --git a/libs/pbd/pbd/ringbuffer.h b/libs/pbd/pbd/ringbuffer.h index d98601461e..3502bed21b 100644 --- a/libs/pbd/pbd/ringbuffer.h +++ b/libs/pbd/pbd/ringbuffer.h @@ -20,6 +20,7 @@ #ifndef ringbuffer_h #define ringbuffer_h +#include <cstring> #include <glib.h> template<class T> diff --git a/libs/pbd/pool.cc b/libs/pbd/pool.cc index 6230073652..ffaea3c1a2 100644 --- a/libs/pbd/pool.cc +++ b/libs/pbd/pool.cc @@ -20,6 +20,7 @@ #include <iostream> #include <vector> +#include <cstdlib> #include <pbd/pool.h> #include <pbd/error.h> |