diff options
author | Robin Gareus <robin@gareus.org> | 2014-04-19 00:54:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-04-19 00:54:43 +0200 |
commit | ce72458d0934c009cc716b5b3171178c34df2152 (patch) | |
tree | a8ff4cffa3a2ffa6f0828ab2c38bc459fffbe2ad /libs | |
parent | 855fb705eac9f35e026e3c68bebd9191c6948aa6 (diff) |
no vfork wrapper on windows
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/system_exec.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/system_exec.cc b/libs/ardour/system_exec.cc index c99863f2e5..90e729a7f6 100644 --- a/libs/ardour/system_exec.cc +++ b/libs/ardour/system_exec.cc @@ -31,6 +31,9 @@ using namespace ARDOUR; char * SystemExec::_vfork_exec_wrapper = NULL; static char *vfork_exec_wrapper_path() { +#ifdef PLATFORM_WINDOWS + return NULL; +#else std::string vfork_exec_wrapper; if (!PBD::find_file_in_search_path ( PBD::Searchpath(Glib::build_filename(ARDOUR::ardour_dll_directory(), "vfork")), @@ -39,22 +42,27 @@ static char *vfork_exec_wrapper_path() { return NULL; } return strdup(vfork_exec_wrapper.c_str()); +#endif } SystemExec::SystemExec (std::string c, char ** a) : PBD::SystemExec(c, a) { +#ifndef PLATFORM_WINDOWS if (!_vfork_exec_wrapper) { _vfork_exec_wrapper = vfork_exec_wrapper_path(); } +#endif } SystemExec::SystemExec (std::string c, std::string a) : PBD::SystemExec(c, a) { +#ifndef PLATFORM_WINDOWS if (!_vfork_exec_wrapper) { _vfork_exec_wrapper = vfork_exec_wrapper_path(); } +#endif } SystemExec::~SystemExec() { } |