diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 15:18:31 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 15:18:31 -0400 |
commit | 029c530203748b2a53706d152a33adfb38ef08d3 (patch) | |
tree | b24a1576f90f4ec83a2819eadb2b2f2b65a0727e /gtk2_ardour | |
parent | f80859f3bdcb5c3b982379481ae3999446f35e81 (diff) |
Disable checking for memory locking support on windows
not sure if this is needed on windows, can implement later in PBD
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 77fab156bb..0f7ccebab7 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -27,6 +27,10 @@ #include <cerrno> #include <fstream> +#ifndef WIN32 +#include <sys/resource.h># +#endif + #include <stdint.h> #include <fcntl.h> #include <signal.h> @@ -776,7 +780,7 @@ ARDOUR_UI::no_memory_warning () void ARDOUR_UI::check_memory_locking () { -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(WIN32) /* OS X doesn't support mlockall(2), and so testing for memory locking capability there is pointless */ return; #else // !__APPLE__ |