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/base_ui.cc | |
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/base_ui.cc')
-rw-r--r-- | libs/pbd/base_ui.cc | 7 |
1 files changed, 4 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; } |