From 029c530203748b2a53706d152a33adfb38ef08d3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 11 Jul 2013 15:18:31 -0400 Subject: [PATCH] Disable checking for memory locking support on windows not sure if this is needed on windows, can implement later in PBD --- gtk2_ardour/ardour_ui.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include +#ifndef WIN32 +#include # +#endif + #include #include #include @@ -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__