From 058ebf98b928f735ac2dbd5026a4dcf3fba3e67b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 11 Jul 2013 13:55:03 -0400 Subject: [PATCH] Disable increasing open file limit on windows --- libs/ardour/globals.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 4c91956ffd..cc427f7428 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -25,7 +25,9 @@ #include #include #include +#ifndef WIN32 #include +#endif #include #include #include @@ -193,6 +195,7 @@ setup_hardware_optimization (bool try_optimization) static void lotsa_files_please () { +#ifndef WIN32 struct rlimit rl; if (getrlimit (RLIMIT_NOFILE, &rl) == 0) { @@ -213,6 +216,7 @@ lotsa_files_please () } else { error << string_compose (_("Could not get system open files limit (%1)"), strerror (errno)) << endmsg; } +#endif } int