summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-04-19 00:54:28 +0200
committerRobin Gareus <robin@gareus.org>2014-04-19 00:54:43 +0200
commitce72458d0934c009cc716b5b3171178c34df2152 (patch)
treea8ff4cffa3a2ffa6f0828ab2c38bc459fffbe2ad /libs
parent855fb705eac9f35e026e3c68bebd9191c6948aa6 (diff)
no vfork wrapper on windows
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/system_exec.cc8
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() { }